httpd 服务没法重启 ,网上查到的资料都是端口号冲突 ,记录一下本身的解决办法 !!!php
首先查看 服务状态 : service status httpd / systemctl status httpd.service 提示启动失败spa
再次中止服务 : service stop httpd / systemctl stop httpd、日志
启动服务: service start httpd / systemctl start httpdcode
提示 Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for detailsblog
输入 : journalctl -xe it
并无被发现 端口占用 ,去 etc/httpd/logs 查看日志 io
发现报错 : class
No such file or directory: AH01597: could not open mime types config file /etc/httpd/conf/mime.types. AH00016: Configuration Failed
解决办法 :file
把文件复制到/etc/httpd/conf/mime.types.service
cp /etc/mime.types /etc/httpd/conf/
cd /etc/httpd/conf/
ls
发现有mime.types. 文件
再次启动httpd,没有问题,能够启动了!
systemctl start httpd.service
ok 拉 。。