啓動apache報httpd: apr_sockaddr_info_get() failed for 103.localdomain錯誤問題

在啓動或重啓apache時報如下錯誤,雖然沒有影響,但總感受怪怪的。
httpd: apr_sockaddr_info_get() failed for 103.localdomain
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

解決方法:apache

1)進入apache的安裝目錄:(視我的安裝狀況而不一樣)vim

/etc/httpd/conf/httpd.conf 
#ServerName www.example.com:80
ServerName localhost:80
dom

2) vim /usr/local/apache2/conf/httpd.conf ,搜索」#ServerName」,添加ServerName localhost:80
#ServerName www.example.com:80
ServerName localhost:80
3)再從新啓動apache 便可。
service httpd restartide

/usr/local/apache2/bin/apachectl restart
/usr/local/apache2/bin/apachectl -tspa

相關文章
相關標籤/搜索