Starting httpd: httpd: Couldnot reliably determine the server's fully qualified domainname

来源:互联网 发布:windows oracle主备 编辑:程序博客网 时间:2024/05/28 11:29

1.1  启动apache遇到错误

Starting httpd: httpd: Couldnot reliably determine the server's fully qualified domainname

1.1.1  问题描述

[root@masterPackages]#  service httpd start

Starting httpd: httpd: Couldnot 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@masterPackages]#

1.1.2  问题处理

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

 

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

 

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

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

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

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

3)  再重新启动apache 即可。

      servicehttpd restart

0 0
原创粉丝点击