AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localho

lm_y發表於2017-09-08
Linux安裝Apache2.4出現 : AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message

httpd (pid 7615) already running  表名Apache2.4已經執行,上面的資訊應該在 /etc/http/conf/httpd.cnf 下編輯http.cnf ,在#ServerName www.example.com:80新增

ServerName localhost:80即可

在瀏覽器測試不能出現 It works

此時將centos7的防火牆關閉: systemctl stop firewalld.service

再在ie瀏覽器中測試就可以出現it works

有關centos7的防火牆設定,請參考: 點選開啟連結

相關文章