欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  运维

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

程序员文章站 2022-04-28 10:55:34
...
错误情况:

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的详细内容,更多请关注其它相关文章!