1. 程式人生 > >Apache啟動時報錯Could not reliably determine the server's fully qualified domain name

Apache啟動時報錯Could not reliably determine the server's fully qualified domain name

apache無法啟動,提示:

正在啟動 httpd:httpd: apr_sockaddr_info_get() failed for CentOS
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

原因:httpd.conf檔案中未設定ServerName
解決方法:在httpd.conf檔案中找到#ServerName www.example.com:80,去掉註釋,將www.example.com:80改為本機IP:80