标签:
httpd: apr_sockaddr_info_get() failed for xxx
httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
在/usr/local/apache2/bin/apachectl start启动Apache服务的时候出现的错误
解决办法
vi /etc/hosts127.0.0.1 localhost.localdomain localhost xxx
主要原因是:
apache的conf目录下的配置文件httpd.conf中关于hostname设置和/etc/sysconfig/network中的HOSTNAME设置不统一导致的,修改成统一的主机名即可解决该问题。
注:/etc/sysconfig/network 默认主机名是:HOSTNAME=localhost.localdomain
Apache启动提示 httpd: apr_sockaddr_info_get() failed for xxx
原文地址:http://www.cnblogs.com/Dicky-Zhang/p/5255791.html