首页 > 代码库 > Apache启动提示 httpd: apr_sockaddr_info_get() failed for xxx

Apache启动提示 httpd: apr_sockaddr_info_get() failed for xxx

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/hosts
127.0.0.1 localhost.localdomain localhost xxx

主要原因是:

apache的conf目录下的配置文件httpd.conf中关于hostname设置和/etc/sysconfig/network中的HOSTNAME设置不统一导致的,修改成统一的主机名即可解决该问题。

注:/etc/sysconfig/network 默认主机名是:HOSTNAME=localhost.localdomain








本文出自 “可可Linux” 博客,请务必保留此出处http://kekelinux.blog.51cto.com/9651825/1606287

Apache启动提示 httpd: apr_sockaddr_info_get() failed for xxx