httpd: Could not reliably determine the server's fully
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了httpd: Could not reliably determine the server's fully相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
解决apache启动错误"httpd:Could not reliably determine..."
部署OpenStack问题汇总--解决apache启动错误"httpd:Could not reliably determine..."
Centos6 下启动httpd报错 Could not reliably determine the server's解决方法
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
解决报错httpd: Could not reliably determine the server‘s fully qualified domain name