啓動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