在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
启动正常。
略复杂, 不太看得懂。。。。
楼上那位,你没碰到这个问题,可能感觉看不懂~~