httpd: apr_sockaddr_info_get() failed for centos1113
[root@centos1113 html]# service httpd start
启动 httpd:httpd: apr_sockaddr_info_get() failed for centos1113
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[确定]
1、hosts文件没有配置正确。
如下配置就可以:
[root@centos1113 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.11.13 centos1113 localhost.localdomain localhost
127.0.0.1 centos1113 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
httpd启动,但是会报错,
2、[root@nagios-server var]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
解决方法
[root@nagios-server var]# vi /etc/httpd/conf/httpd.conf
找到ServerName
改成
ServerName 127.0.0.1
更多参考: