centOS 7.0 httpd 无法启动

u010782989 2016-08-07 06:17:56
[root@~]# systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@iZ25a4sazz ~]# systemctl status httpd.service
?.httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2016-08-07 18:12:34 CST; 26s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1749 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 1748 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
Main PID: 1748 (code=exited, status=0/SUCCESS)

Aug 07 18:12:34 iZ25a4sazz systemd[1]: Starting The Apache HTTP Server...
Aug 07 18:12:34 iZ25a4sazz httpd[1748]: httpd (pid 31214) already running
Aug 07 18:12:34 iZ25a4sazz kill[1749]: kill: cannot find process ""
Aug 07 18:12:34 iZ25a4sazz systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 07 18:12:34 iZ25a4sazz systemd[1]: Failed to start The Apache HTTP Server.
Aug 07 18:12:34 iZ25a4sazz systemd[1]: Unit httpd.service entered failed state.
Aug 07 18:12:34 iZ25a4sazz systemd[1]: httpd.service failed.
...全文
26834 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
lollal1 2020-05-07
  • 打赏
  • 举报
回复


我也遇到了这个问题
请问应该怎么解决
dnf -y 2021-07-01
  • 举报
回复
@lollal1 你的问题解决了吗?我也遇到跟你一样的问题了
wgw_memory 2018-11-12
  • 打赏
  • 举报
回复 6
killall httpd
systemctl restart httpd
这样试试
angelavor 2018-10-18
  • 打赏
  • 举报
回复
我也遇到同样的问题,systemctl status httpd.service 显示httpd进程已经running,然后找到对应httpd进程,发现有5个httpd的进程在运行,具体什么原因不得而知了,我拿到服务器就这样,kill掉pid对应进程,在重启就行了
angelavor 2018-10-18
  • 打赏
  • 举报
回复
查看以下80端口对应的进程是否存在,存在的话杀掉,重新使用systemctl start httpd.service
Professorboy 2018-10-13
  • 打赏
  • 举报
回复
楼主的那个报错是配置文件写的有错,导致服务起不来
  • 打赏
  • 举报
回复
Aug 07 18:12:34 iZ25a4sazz httpd[1748]: httpd (pid 31214) already running
这里说,你的httpd已经在运行了
xiaokanshijie 2018-09-30
  • 打赏
  • 举报
回复
相同的问题
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor prese t: disabled)
Active: failed (Result: exit-code) since Sun 2018-09-30 20:06:42 CST; 4min 51 s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 15049 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAI LURE)
Process: 15048 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, s tatus=1/FAILURE)
Main PID: 15048 (code=exited, status=1/FAILURE)

Sep 30 20:06:42 VM_0_13_centos httpd[15048]: AH00558: httpd: Could not relia...e
Sep 30 20:06:42 VM_0_13_centos httpd[15048]: (98)Address already in use: AH0...0
Sep 30 20:06:42 VM_0_13_centos httpd[15048]: no listening sockets available,...n
Sep 30 20:06:42 VM_0_13_centos httpd[15048]: AH00015: Unable to open logs
Sep 30 20:06:42 VM_0_13_centos systemd[1]: httpd.service: main process exite...E
Sep 30 20:06:42 VM_0_13_centos kill[15049]: kill: cannot find process ""
Sep 30 20:06:42 VM_0_13_centos systemd[1]: httpd.service: control process ex...1
Sep 30 20:06:42 VM_0_13_centos systemd[1]: Failed to start The Apache HTTP S....
Sep 30 20:06:42 VM_0_13_centos systemd[1]: Unit httpd.service entered failed....
Sep 30 20:06:42 VM_0_13_centos systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

colinshi123 2017-05-22
  • 打赏
  • 举报
回复
pkill httpd 然后重启,是不是直接自己执行过httpd的执行文件。因为不是service起的,所以service kill不掉。。。
Insane_linux 2017-05-08
  • 打赏
  • 举报
回复
kill掉httpd进程,重新启动
myselfstar 2017-03-22
  • 打赏
  • 举报
回复 1
firewall-cmd --add-service=http 在看。
吃香菜不放葱 2017-03-04
  • 打赏
  • 举报
回复
遇到相同问题,怎么解决
乐大师 2016-10-12
  • 打赏
  • 举报
回复
查下日志文件内容
重生的苍鹰 2016-10-12
  • 打赏
  • 举报
回复
ps -ef|grep httpd 看是否已经存在进程,若存在,手工kill掉,然后在systemctl start httpd.service 试一下
摄魂天下 2016-10-10
  • 打赏
  • 举报
回复
请问楼主这个问题解决了吗 遇到相同的问题
lizh1009 2016-08-09
  • 打赏
  • 举报
回复
"journalctl -xe"看一下打印信息。
u010782989 2016-08-08
  • 打赏
  • 举报
回复
我用yum 源 安装 后 看了一下状态就那样了
califord 2016-08-07
  • 打赏
  • 举报
回复
楼主是不是自己修改了配置?一般装好系统后httpd是可以用的,就是启动一下? 楼主可能是自己重新装了吗? 是不是可以说一下前因后果?

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧