server’s fully qualified domain name, using 127.0.0.1. Set the ‘ServerName’

2019-04-11 09:57:41 6000

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

然后:

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


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: