2011年8月24日 星期三

httpd 出現下列訊息

[root@setup ~]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: apr_sockaddr_info_get() failed for setup.example.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

可以設定 ServerName 或者在 /etc/hosts 中填入自己的主機名稱,
[root@setup ~]# vim /etc/hosts
127.0.0.1 setup.example.com setup
[root@setup ~]# vim /etc/httpd/conf/httpd.conf
ServerName setup.example.com:80

沒有留言: