ubuntu14.04下无法重启apache2服务

出现如下提示:

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



解决方法:

sudo vim /etc/apache2/sites-available/000-default.conf

在文件顶端加入:

ServerName 127.0.0.1

重启apache2即可


posted @ 2014-10-20 19:23  Netop  阅读(397)  评论(0编辑  收藏  举报