apache - Centos httpd apache http服务器启动失败

标签 apache centos openstack httpd.conf openstack-horizon

我有打开的堆栈正在运行,它工作正常我已经重新启动,因为无法重新启动 httpd

[root@h30 ~]# 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 Thu 2016-09-01 14:11:07 BST; 2min 13s ago
 Docs: man:httpd(8)
       man:apachectl(8)
Process: 10030 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 10027 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Process: 9944 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
Process: 9919 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear (code=exited, status=0/SUCCESS)
Main PID: 10027 (code=exited, status=1/FAILURE)

Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...ive.js'
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...pec.js'
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...l.html'
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...ule.js'
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...pec.js'
Sep 01 14:11:07 h30 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 01 14:11:07 h30 systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 01 14:11:07 h30 systemd[1]: Failed to start The Apache HTTP Server.
Sep 01 14:11:07 h30 systemd[1]: Unit httpd.service entered failed state.
Sep 01 14:11:07 h30 systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

而且我不知道是什么导致了这个问题说实话,任何帮助都会很棒。

这是错误日志
[Wed Aug 31 17:23:03.796739 2016] [core:notice] [pid 4346] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Aug 31 17:23:06.653781 2016] [mpm_prefork:notice] [pid 4346] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 17:23:31.884455 2016] [core:notice] [pid 7547] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Aug 31 17:23:31.885805 2016] [suexec:notice] [pid 7547] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Aug 31 17:23:31.902192 2016] [so:warn] [pid 7547] AH01574: module php5_module is already loaded, skipping
[Wed Aug 31 17:23:31.902233 2016] [so:warn] [pid 7547] AH01574: module wsgi_module is already loaded, skipping
[Wed Aug 31 17:23:31.905613 2016] [auth_digest:notice] [pid 7547] AH01757: generating secret for digest authentication ...
[Wed Aug 31 17:23:32.100865 2016] [mpm_prefork:notice] [pid 7547] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Wed Aug 31 17:23:32.100922 2016] [core:notice] [pid 7547] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Aug 31 18:35:11.515126 2016] [mpm_prefork:notice] [pid 7547] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 19:22:27.955740 2016] [core:notice] [pid 17956] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Aug 31 19:22:27.968206 2016] [suexec:notice] [pid 17956] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Aug 31 19:22:27.984913 2016] [so:warn] [pid 17956] AH01574: module php5_module is already loaded, skipping
[Wed Aug 31 19:22:27.984949 2016] [so:warn] [pid 17956] AH01574: module wsgi_module is already loaded, skipping
[Wed Aug 31 19:22:27.988204 2016] [auth_digest:notice] [pid 17956] AH01757: generating secret for digest authentication ...
[Wed Aug 31 19:22:28.303754 2016] [mpm_prefork:notice] [pid 17956] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Wed Aug 31 19:22:28.303816 2016] [core:notice] [pid 17956] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 09:35:49.397054 2016] [core:notice] [pid 20080] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 09:35:49.399094 2016] [suexec:notice] [pid 20080] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 09:35:49.415550 2016] [so:warn] [pid 20080] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 09:35:49.415588 2016] [so:warn] [pid 20080] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 09:35:49.418833 2016] [auth_digest:notice] [pid 20080] AH01757: generating secret for digest authentication ...
[Thu Sep 01 09:35:49.712957 2016] [mpm_prefork:notice] [pid 20080] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 09:35:49.713022 2016] [core:notice] [pid 20080] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 10:19:18.114919 2016] [mpm_prefork:notice] [pid 20080] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 01 10:22:37.210697 2016] [core:notice] [pid 5401] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 10:22:37.212740 2016] [suexec:notice] [pid 5401] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 10:22:37.228616 2016] [so:warn] [pid 5401] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 10:22:37.228654 2016] [so:warn] [pid 5401] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 10:22:37.231944 2016] [auth_digest:notice] [pid 5401] AH01757: generating secret for digest authentication ...
[Thu Sep 01 10:22:37.522692 2016] [mpm_prefork:notice] [pid 5401] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 10:22:37.522741 2016] [core:notice] [pid 5401] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 13:20:14.419086 2016] [mpm_prefork:notice] [pid 5401] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 01 13:20:48.116596 2016] [core:notice] [pid 41924] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 13:20:48.118260 2016] [suexec:notice] [pid 41924] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 13:20:48.133601 2016] [so:warn] [pid 41924] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 13:20:48.133632 2016] [so:warn] [pid 41924] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 13:20:48.136768 2016] [auth_digest:notice] [pid 41924] AH01757: generating secret for digest authentication ...
[Thu Sep 01 13:20:48.396768 2016] [mpm_prefork:notice] [pid 41924] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 13:20:48.396822 2016] [core:notice] [pid 41924] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 13:21:00.502249 2016] [mpm_prefork:notice] [pid 41924] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 01 13:21:25.497407 2016] [core:notice] [pid 44854] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 13:21:25.498739 2016] [suexec:notice] [pid 44854] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 13:21:25.514803 2016] [so:warn] [pid 44854] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 13:21:25.514842 2016] [so:warn] [pid 44854] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 13:21:25.518264 2016] [auth_digest:notice] [pid 44854] AH01757: generating secret for digest authentication ...
[Thu Sep 01 13:21:25.709404 2016] [mpm_prefork:notice] [pid 44854] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 13:21:25.709456 2016] [core:notice] [pid 44854] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 13:27:32.427493 2016] [mpm_prefork:notice] [pid 44854] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 01 13:30:35.056150 2016] [core:notice] [pid 5096] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 13:30:35.058238 2016] [suexec:notice] [pid 5096] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 13:30:35.075005 2016] [so:warn] [pid 5096] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 13:30:35.075040 2016] [so:warn] [pid 5096] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 13:30:35.078421 2016] [auth_digest:notice] [pid 5096] AH01757: generating secret for digest authentication ...
[Thu Sep 01 13:30:35.374300 2016] [mpm_prefork:notice] [pid 5096] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 13:30:35.374357 2016] [core:notice] [pid 5096] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 13:37:17.885730 2016] [mpm_prefork:notice] [pid 5096] AH00170: caught SIGWINCH, shutting down gracefully

最佳答案

您是否进行了任何配置更改?只是重新启动系统会导致问题吗?错误日志没有显示任何错误。您可以启用“调试”级别的日志记录并尝试重新启动您的 httpd 服务吗?并分享日志。

从日志看来,您的 apache 已启动,但几秒钟后它立即关闭。所以,是什么原因导致此关闭。您是否为此类服务配置了任何 cron 作业?

Thu Sep 01 13:20:48.396768 2016] [mpm_prefork:notice] [pid 41924] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
...
[Thu Sep 01 13:21:00.502249 2016] [mpm_prefork:notice] [pid 41924] AH00170: caught SIGWINCH, shutting down gracefully

关于apache - Centos httpd apache http服务器启动失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39272874/

相关文章:

javascript - Apache : CORS header 'Access-Control-Allow-Origin' missing

windows - XAMPP Tomcat 不停止

linux - Apache httpd :bind:Address already in use

java - 如何在 OpenStack Object Storage(Swift) 中上传照片和其他文件

openstack - 为什么?找不到记录器 "oslo_config.cfg"的处理程序

apache - 来自浏览器的过时加密警告

linux - 增加到 node.js/socket.io 的最大连接

youtube - 未找到 ffprobe 或 avprobe。请安装一个

php - 在 Crontab 中使用相对路径

python - 使用python将参数和值写入yaml