分类: 系统运维
2008-08-01 14:30:19
解决apache的apr_sockaddr_info_get() failed错误
似乎不影响服务的使用,但是也挺别扭的。
-------------------------------------------------------------------------------------
[root@linux http]# service httpd restart
httpd: apr_sockaddr_info_get() failed for linux
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for
ServerName
-------------------------------------------------------------------------------------
/etc/sysconfig/network 默认主机名是:HOSTNAME=localhost.localdomain
/etc/hosts 二个配置文件主机名相同
原因是我删掉了网卡中的主机信息 ::1 localhost.localdomain localhost
添加加去后:
cat /etc/hosts
::1 localhost.localdomain localhost