首页 > 技术文章 > apache启动问题: Could not reliably determine the server's fully qualified domain name

rusking 2015-04-18 15:16 原文

[root@rusky]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for rusky
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

***********************

解决方法:

修改httpd.conf配置文件:

vi /etc/httpd/conf/httpd.conf   加入一句  ServerName  localhost:80

重新启动正常:

[root@rusky]# service httpd stop
Stopping httpd: [ OK ]
[root@rusky]# service httpd start
Starting httpd: [ OK ]

推荐阅读