httpd.service 的作业失败,因为控制进程以错误代码退出.参见“systemctl status httpd.service"和“journalctl -xe"详情 [英] Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details

查看:204
本文介绍了httpd.service 的作业失败,因为控制进程以错误代码退出.参见“systemctl status httpd.service"和“journalctl -xe"详情的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 Centos 7 的新副本.然后我重新启动了 Apache,但 Apache 无法启动.我在这个问题上停留了 3 天.连支持都想不通.

I have installed a fresh copy of Centos 7. Then I restarted Apache but the Apache failed to start. I have 3 days stucked in this issue. Even the support can not figure out the error.

sudo service httpd start


Failed to start apache :
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.


httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2016-05-09 16:08:02 BST; 59s ago
     Docs: man:httpd(8)
           man:apachectl(8)
 Main PID: 5710 (code=exited, status=1/FAILURE)

May 09 16:08:02 mike079.startdedicated.de systemd[1]: Starting The Apache HTTP Server...
May 09 16:08:02 mike079.startdedicated.de httpd[5710]: (98)Address already in use: AH00072: make_sock: could not bind to address 85.25.12.20:80
May 09 16:08:02 startdedicated.de httpd[5710]: no listening sockets available, shutting down
May 09 16:08:02 startdedicated.de httpd[5710]: AH00015: Unable to open logs
May 09 16:08:02 startdedicated.de systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 09 16:08:02.startdedicated.de kill[5712]: kill: cannot find process ""
May 09 16:08:02 .startdedicated.de systemd[1]: httpd.service: control process exited, code=exited status=1
May 09 16:08:02startdedicated.de systemd[1]: Failed to start The Apache HTTP Server.
May 09 16:08:02 startdedicated.de systemd[1]: Unit httpd.service entered failed state.
May 09 16:08:02 mike: httpd.service failed.

推荐答案

从你的输出:

没有可用的监听套接字,正在关闭

no listening sockets available, shutting down

这基本上意味着,一个 apache 将要监听的任何端口都已被另一个应用程序使用.

what basically means, that any port in which one apache is going to be listening is already being used by another application.

netstat -punta |grep 听

将为您提供所有正在使用的端口的列表以及识别哪个进程所需的信息,以便您可以 kill stop 或做任何您想做的事情它.

Will give you a list of all the ports being used and the information needed to recognize which process is so you can kill stop or do whatever you want to do with it.

在对你的 ip 进行 nmap 之后,我可以看到

After doing a nmap of your ip I can see that

80/tcp    open     http

所以我猜你已经解决了.

so I guess you sorted it out.

这篇关于httpd.service 的作业失败,因为控制进程以错误代码退出.参见“systemctl status httpd.service"和“journalctl -xe"详情的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆