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 拉 。。