啓動httpd錯誤: Could not reliably determine the server

啓動httpd遇到錯誤:httpd: Could not reliably determine the server’s fully qualified domain name

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

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

/etc/httpd/conf/httpd.conf 

2)編輯httpd.conf文件,搜索”#ServerName”,添加ServerName localhost:80
#ServerName www.example.com:80
ServerName localhost:80
3)再重新啓動apache 即可。
service httpd restart


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章