您的位置:首页 > 大数据 > 人工智能

httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

2008-10-27 14:56 871 查看
 Apache的启动经常看到这样一个警告

[root@eygle conf]# apachectl start

httpd: Could not determine the server's fully qualified domain name, using 172.16.11.99 for ServerName

刚刚查了一下,找到了解决方法.

Your box's config does not allow Apache to find your server's FQDN (Fully Qualified Domain Name).

原因是Apache无法找到服务器的FQDN(Fully Qualified Domain Name).

最简单的,修改httpd.conf文件,增加:

ServerName <server_name_or_ip_addr>

我的改为:

ServerName www.eygle.com:80

再次启动就正常了:

[root@eygle conf]# apachectl stop

[root@eygle conf]# apachectl start

 

http://www.zaoxue.com/article/tech-45832.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐