可能有些朋友會碰到在apache啟動錯誤提示:httpd: Could not reliably determine the server 這個問題,其實解決辦法很簡單。
錯誤提示:在系統啟動時apache,沒有啟動起來,查看“事件查看器”發現報一些錯誤:
The Apache service named reported the following error:>>> httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.200 for ServerName
解決辦法
1)進入apache配置文件的目錄:(視個人安裝情況而不同)
[root@centos /]# cd /etc/httpd //我安裝時配置文件所在的目錄為/etc/httpd
2)編輯httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
- [root@centos httpd]# vi httpd.conf
- #ServerName www.hzhuti.com:80
更改為:
- ServerName localhost:80
再重新啟動apache 即可。
新聞熱點
疑難解答