首页  >  文章  >  运维  >  Apache2启动错误Could not reliably determine the server's fully qualified domain name

Apache2启动错误Could not reliably determine the server's fully qualified domain name

PHP中文网
PHP中文网原创
2017-06-19 11:24:518671浏览
错误情况:

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message 

 

出现以上情况只要修改一下Apache的配置文件即可:

在配置文件 apache2.conf里面加入一行

 ServerName localhost:80

 然后重启Apache服务就可以了

sudo /etc/init.d/apache2 restart 

以上是Apache2启动错误Could not reliably determine the server's fully qualified domain name的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn