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

重启Apache报错apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting的解决方法

时间:2016-01-30 13:17:15      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:

启动apache提示 :

apache2: Could not reliably determine the server‘s fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server‘s fully qualified domain name, using 127.0.1.1 for ServerName

技术分享

(1)、进入apache的安装目录: cd /etc/apache2/ 

(2)、编辑http.conf文件,添加ServerName localhost:80

      sudo vim httpd.conf

(3)、最后,再次重启apache

      sudo /etc/init.d/apache2 restart

技术分享

技术分享

 

重启Apache报错apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting的解决方法

标签:

原文地址:http://www.cnblogs.com/koucy/p/5161699.html

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