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

2017-3-1 liyangweb.com 李杨 服务器

在ubuntu系统中,通过apt-get install apache2安装了apache服务器,在启动的时候发现报错:

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

解决方法:

 vim /etc/apache2/apache2.conf

在文件末尾加上 ServerName localhost:80

执行 apachectl start

启动正常。

标签: apache

评论(1) 浏览(4522)

Powered by emlog 冀ICP备13011830号-1