启动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


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