码迷,mamicode.com
首页 > Web开发 > 详细

httpd: Could not reliably determine the server's fully

时间:2017-11-12 20:53:52      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:httpd

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

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

Unable to open logs



第一个问题解决办法:

vi /etc/httpd/conf/httpd.conf   加入一句  ServerName  localhost:80


首先进入目录:

cd /etc/httpd


通过ls查看目录文件,能够看到logs目录一直在闪,说明这个有问题(根据我这边的情况,可能还有其他情况,待会再说)


通过ls -l 查看权限,能够看到logs目录对应的链接:

logs -> ../../var/log/httpd


然后通过命令进入:cd /var/log


进入后发现,httpd目录不存在,于是创建httpd目录,并在其目录下创建errir_log文件。


创建完成之后,记得执行以下命令:chown root:monkey /var/log,将其所有者转到root下


chown root:monkey /var/log,


httpd: Could not reliably determine the server's fully

标签:httpd

原文地址:http://13240596.blog.51cto.com/13230596/1981058

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!