系统:CentOS6.4
[root@VM136 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for VM136.localdomain
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for VM136.localdomain
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
解决方案:
#vim /web/apache/conf/httpd.conf (yum安装的是这个目录)
找到#ServerName www.example.com:80 把#去掉,再重启apache即可没事了。
找到#ServerName www.example.com:80 把#去掉,再重启apache即可没事了。