Starting httpd: httpd: Could not reliably determine the server

1.1  启动apache遇到错误

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name

1.1.1  问题描述

[root@master Packages]#  service httpd start

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.98.156 for ServerName

(2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.

Unable to open logs

[FAILED]

[root@master Packages]#

1.1.2  问题处理

启动apache遇到错误:httpd: Could not reliably determine the servers fully qualified domain name

 

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

 

1)  进入apache的安装目录:(视个人安装情况而不同)2)   

2)  /etc/httpd/conf/httpd.conf

      编辑httpd.conf文件,搜索”#ServerName”,添加ServerName localhost:80

    #ServerName www.example.com:80
 ServerName localhost:80

3)  再重新启动apache 即可。

       service httpd restart

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24179204/viewspace-2125526/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24179204/viewspace-2125526/

你可能感兴趣的:(Starting httpd: httpd: Could not reliably determine the server)