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

报错apachectl -t

时间:2015-12-06 12:50:57      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:

httpd: apr_sockaddr_info_get() failed for www
httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK

 

解决办法1

vim /usr/local/apache2/conf/httpd.conf
ServerName www.example.com:80
ServerName localhost:80

 

解决办法2

vim /etc/hosts
# 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1 localhost.localdomain localhost www
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

把原来的注释掉,加一行新的,最后的www是主机名

 

报错apachectl -t

标签:

原文地址:http://www.cnblogs.com/wangshaojun/p/5023184.html

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