[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.

解决方案 »

  1.   

    楼主是不是自己修改了配置?一般装好系统后httpd是可以用的,就是启动一下?楼主可能是自己重新装了吗?是不是可以说一下前因后果?
      

  2.   

    我用yum 源 安装 后  看了一下状态就那样了
      

  3.   

    "journalctl -xe"看一下打印信息。
      

  4.   

    ps -ef|grep httpd 看是否已经存在进程,若存在,手工kill掉,然后在systemctl start httpd.service 试一下
      

  5.   

    firewall-cmd --add-service=http 
    在看。
      

  6.   

    kill掉httpd进程,重新启动
      

  7.   

    pkill httpd
    然后重启,是不是直接自己执行过httpd的执行文件。因为不是service起的,所以service kill不掉
      

  8.   

    相同的问题
    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.
      

  9.   

    Aug 07 18:12:34 iZ25a4sazz httpd[1748]: httpd (pid 31214) already running
    这里说,你的httpd已经在运行了
      

  10.   

    查看以下80端口对应的进程是否存在,存在的话杀掉,重新使用systemctl start httpd.service
      

  11.   

    我也遇到同样的问题,systemctl status httpd.service 显示httpd进程已经running,然后找到对应httpd进程,发现有5个httpd的进程在运行,具体什么原因不得而知了,我拿到服务器就这样,kill掉pid对应进程,在重启就行了
      

  12.   

    killall httpd  
    systemctl   restart httpd
    这样试试