sdchy 发表于 2018-10-19 13:43:51

httpd: Could not reliably determine the server's fully

  Starting httpd: httpd: Could not>  (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   加入一句ServerNamelocalhost: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,

页: [1]
查看完整版本: httpd: Could not reliably determine the server's fully