Apache重启失败,提示:Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

  今天更新完程序,重启apache的时候,第一遍正常重启,1分钟之后第二次重启的时候报错了。

  执行service httpd restart之后:

  报错:

    Job for httpd.service failed. See ‘systemctl status httpd.service‘ and ‘journalctl -xn‘ for details.

  此时查看apache状态已经处于stop.

  执行 ps -ef | grep httpd  命令查看端口占用的时候,已经没有httpd进程,apache挂掉了。

  这时需要先去查看日志

    cat error_log之后找到这一句(最新的报错内容):

      suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

      顺势找到对应的博客,地址:https://www.shikexu.com/archives/835

      结合实际情况,符合博主所说的:用户进程通信信号量达到限制导致

  查看解决办法:

    执行命令查看信号量:ipcs -s

      -a:显示全部可显示的信息; -q:显示活动的消息队列信息; -m:显示活动的共享内存信息; -s:显示活动的信号量信息。

    正如博主所展示的一样,服务器在apache未启动的情况下,占用了很多通道

    接下来,清除信号量

      ipcs -s | perl -ane ‘/^0x00000000/ && `ipcrm -s $F[1]`‘

    清除后重启apache,问题解决

    

Apache重启失败,提示:Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

原文地址:https://www.cnblogs.com/bk770466199/p/10432987.html

时间: 2024-11-10 00:15:51

Apache重启失败,提示:Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.的相关文章

Job for httpd.service failed. See 'systemctl status httpd.service'

问题:Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details. 问题的状态: (1)重启[[email protected] ~]#systemctl restart httpd.serviceJob for httpd.service failed. See 'systemctl status httpd.service' and 'journalct

nginx启动报错:Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' fo

一.背景 这个错误在重启nginx或者启动nginx的时候,经常会出现.我之前也一直认为出现这个错误是因为有程序占用了nginx的进程.但是知其然不知其所以然.每次报错都有点懵逼,所以这边一步步排查错误,做个记录. 二.排错过程 1.按照提示 //按照提示,执行此命令,查看错误原因 systemctl status nginx.service 由报错信息可知,nginx绑定80端口失败.详细错误请输入 -l 继续查看 2.继续跟踪错误 //查看错误的详情 systemctl status ngi

Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

linux下重启网卡使用命令 : service network restart 时报错: [[email protected] hadoop]# service network restart Starting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.servi

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

thinkphp 在Apache上配置启用伪静态,重启Apache1 restart 竟然失败了,报错 Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details 嗯,看状态 执行命令 systemctl status http

Apache无法启动提示the requested operation has failed

主要参考这篇 http://apps.hi.baidu.com/share/detail/15868128 但还是遇到一些问题,记录如下: 1. 配置完成后,restart apache,出现 the requested operation has failed 查看log,有 httpd.exe: Syntax error on line 129 of F:/work_soft/www/server/apache/conf/httpd.conf: Can't locate API module

CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.)

一.启动失败 1.启动docker [[email protected] ~]# systemctl start docker Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe " for details. 上面表示输入 systemctl

linux虚拟机出现See 'systemctl status network.service' and 'journalctl -xn' for details.的原因

博主之前也是突然遇到linux没有eth0网卡,重新cp了写了配置但是也没有用,反而有一个莫名其妙的报错 See 'systemctl status network.service' and 'journalctl -xn' for details. 而且再去读eth0会提示file not found 然后尝试重新添加删除网卡 没法重新发现 突然想到会不会是驱动的原因,想到了这个地方 这个是vmware的一个智能设置,他会根据你的ISO自动给你推荐分类的vmware tools,但是博主的IS

docker 报错: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

centos 启动docker服务报错: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 1,create daemon.json in /etc/docker/ 2, put this in it: { &q

Linux系统Docker启动问题Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service"

在Liunx中使用Docker, 注: Liunx使用的是在虚拟机下的centOS7版本在刚开始安装Docker时没有任何错误, 但是在后续的docker启动过程中, 出现以下问题: 1 [[email protected] docker]# service docker start 2 Redirecting to /bin/systemctl start docker.service 3 Job for docker.service failed because the control pr