Starting httpd: httpd: Could not reliably determine the server

ultradb發表於2016-10-18

1.1  啟動apache遇到錯誤

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name

1.1.1  問題描述

[root@master Packages]#  service httpd start

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.98.156 for ServerName

(2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.

Unable to open logs

[FAILED]

[root@master Packages]#

1.1.2  問題處理

啟動apache遇到錯誤:httpd: Could not reliably determine the servers fully qualified domain name

httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

1)  進入apache的安裝目錄:(視個人安裝情況而不同)

2)  /etc/httpd/conf/httpd.conf

3)  編輯httpd.conf檔案,搜尋”#ServerName”,新增ServerName localhost:80

4)  #ServerName

5)  ServerName localhost:80

6)  再重新啟動apache 即可service httpd restart

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24179204/viewspace-2126688/,如需轉載,請註明出處,否則將追究法律責任。

相關文章