记服务器 httpd 服务无法启动

httpd 服务无法重启 ,网上查到的资料都是端口号冲突 ,记录一下自己的解决办法 !!!

首先查看 服务状态 :  service status httpd / systemctl status httpd.service 提示启动失败

再次停止服务 : service stop  httpd / systemctl stop  httpd、

启动服务: service start  httpd / systemctl start  httpd

 

提示 Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details

 

输入 : journalctl -xe

并没有被发现 端口占用 ,去 etc/httpd/logs  查看日志

发现报错 : 

No such file or directory: AH01597: could not open mime types config file /etc/httpd/conf/mime.types.
AH00016: Configuration Failed

 

解决办法 :

把文件复制到/etc/httpd/conf/mime.types.

cp /etc/mime.types  /etc/httpd/conf/
cd /etc/httpd/conf/
ls

 发现有mime.types. 文件 

再次启动httpd,没有问题,可以启动了!

 systemctl start httpd.service

  ok 拉 。。

 

posted @ 2019-01-14 15:53  暖心i  阅读(4859)  评论(0编辑  收藏  举报