httpd无法启动

机器重启后,dashboard无法显示。查看后台发现httpd无法启动。

检查httpd日志,如下提示:

=========

[root@controller ~]# systemctl status -l httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: failed (Result: exit-code) since Mon 2016-05-16 10:27:41 CST; 6s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 27815 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 27813 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  Process: 27790 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
  Process: 27769 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear (code=exited, status=0/SUCCESS)
 Main PID: 27813 (code=exited, status=1/FAILURE)


May 16 10:27:41 controller python[27790]: Compressing... done
May 16 10:27:41 controller python[27790]: Compressed 4 block(s) from 3 template(s).
May 16 10:27:41 controller httpd[27813]: AH00526: Syntax error on line 18 of /etc/httpd/conf.d/ssl.conf:
May 16 10:27:41 controller httpd[27813]: Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration
May 16 10:27:41 controller systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 16 10:27:41 controller kill[27815]: kill: cannot find process ""
May 16 10:27:41 controller systemd[1]: httpd.service: control process exited, code=exited status=1
May 16 10:27:41 controller systemd[1]: Failed to start The Apache HTTP Server.
May 16 10:27:41 controller systemd[1]: Unit httpd.service entered failed state.
May 16 10:27:41 controller systemd[1]: httpd.service failed.

=========


google后查到一个workaround

Have you lost the line in /etc/httpd/conf/httpd.conf that does 

Include conf.modules.d/*.conf

(原文链接:https://bugs.centos.org/view.php?id=8092)


试了一下,搞定。

google还是靠谱。

不说了,肚子饿了:百度定个外卖。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值