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
博客主要讲述了Apache启动时出现无法确定服务器完全限定域名(FQDN)警告的问题。原因是配置不允许Apache找到服务器的FQDN,解决方法是修改httpd.conf文件,增加ServerName <server_name_or_ip_addr>,修改后再次启动Apache恢复正常。
4771

被折叠的 条评论
为什么被折叠?



