httpd服务停止工作,重新启动服务后?任何的想法?

时间:2017-10-27 11:17:05

标签: apache openstack centos7 httpd.conf systemctl

systemctl重启httpd.service 当我执行该命令时httpd无法重启

systemctl status httpd.service 示出了

   [root@openstack ~]# systemctl status httpd.service
â—� 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 Fri 2017-10-27 18:11:35 WIB; 10s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 14032 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 14029 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  Process: 13983 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
  Process: 13959 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear (code=exited, status=0/SUCCESS)
 Main PID: 14029 (code=exited, status=1/FAILURE)

Oct 27 18:11:21 openstack.localdomain python[13959]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/modal/delete-modal.service.js'
Oct 27 18:11:21 openstack.localdomain python[13959]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/modal/delete-modal.service.spec.js'
Oct 27 18:11:21 openstack.localdomain python[13959]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/modal/modal.module.js'
Oct 27 18:11:21 openstack.localdomain python[13959]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/modal/simple-modal.controller.js'
Oct 27 18:11:21 openstack.localdomain python[13959]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/modal/simple-modal.html'
Oct 27 18:11:35 openstack.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 27 18:11:35 openstack.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 27 18:11:35 openstack.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Oct 27 18:11:35 openstack.localdomain systemd[1]: Unit httpd.service entered failed state.
Oct 27 18:11:35 openstack.localdomain systemd[1]: httpd.service failed.

1 个答案:

答案 0 :(得分:0)

您的状态显示服务因某种原因失败。这可能有一百万个原因,但我的钱是配置文件中的语法错误。

尝试跑步:

httpd -t

这将告诉您语法错误以及修复内容,或者让您知道您需要寻找不同的答案。

相关问题