分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 网页技术

httpd: Could not reliably determine the server's fully

发布时间:2023-09-06 01:24责任编辑:胡小海关键词:http

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

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

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved