apache错误:server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName'

来源:互联网 发布:车载导航电子狗软件 编辑:程序博客网 时间:2024/05/21 09:53

linux配置apache环境重启是遇到:

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

只需要在apache的配置文件 apache2.conf 里面添加这么一句话:

#打开配置文件  sudo vim /etc/apache2/apache2.conf  #加上这一句  ServerName localhost:80 

然后:

#重启Apachesudo service apache2 restart#出现* Restarting web server apache2   [ OK ]                                                                     

问题就解决啦!

阅读全文
1 0
原创粉丝点击