温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

httpd: Could not reliably determine the server's fully

发布时间:2020-07-30 02:55:13 来源:网络 阅读:393 作者:qingxin76 栏目:大数据

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,


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI