zoukankan      html  css  js  c++  java
  • 记服务器 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 拉 。。

  • 相关阅读:
    代理模式
    组合模式
    策略模式
    状态模式
    js 未结束的字符串常量错误解决方法
    struts2+hibernate+poi导出Excel实例
    Java 实现导出excel表 POI
    ExtJS 4.2 中自定义事件
    dhtmlxGrid分页查询,条件查询实例
    '@P0' 附近有语法错误
  • 原文地址:https://www.cnblogs.com/nuanxin/p/10267282.html
Copyright © 2011-2022 走看看