码迷,mamicode.com
首页 > Web开发 > 详细

Apache2启动错误Could not reliably determine the server's fully qualified domain name

时间:2017-06-01 13:18:46      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:local   etc   not   重启   name   lock   conf   play   global   

错误情况:

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 

 

出现以上情况只要修改一下Apache的配置文件即可:

在配置文件 apache2.conf里面加入一行

 ServerName localhost:80

 然后重启Apache服务就可以了

sudo /etc/init.d/apache2 restart 

Apache2启动错误Could not reliably determine the server's fully qualified domain name

标签:local   etc   not   重启   name   lock   conf   play   global   

原文地址:http://www.cnblogs.com/rencm/p/6928255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!