启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name

时间:2022-11-05 20:23:36

  启动Apache时遇到错误:

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

 解决方案:
1)进入apache的安装目录:apache/conf
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
#ServerName www.example.com:80
ServerName localhost:80
3)再重新启动apache