最近我編輯了我的專用服務器(CentOS 6的64位)上的一些文件時,我決定重新啓動httpd的,我收到以下錯誤:專用服務器HTTPD錯誤
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
有誰知道我怎麼能解決這個問題?
最近我編輯了我的專用服務器(CentOS 6的64位)上的一些文件時,我決定重新啓動httpd的,我收到以下錯誤:專用服務器HTTPD錯誤
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
有誰知道我怎麼能解決這個問題?
查看/etc/httpd/conf/httpd.conf中的ServerName。更改:
服務器名www.yourwebserver.com:80
重新啓動httpd的。
檢查以確保您使用的主機名是反向映射的。或者它在DNS中定義。
您需要更改/ etc/hosts文件。
應該是這樣:
127.0.0.1 yourservername.yourdomain YOURSERVERNAME
請確保這條線出現一次。
沒有,沒有修復。我是否需要更改hosts.conf中的任何內容?這裏是localhost localhost localhost.localdomain localhost4 localhost4.localdomain4 :: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6 – KyleD
這裏是我的httpd.conf的servername:#ServerName www.example.com:80 ServerName localhost:80 – KyleD