[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.
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.
解决方案 »
- Linux fork 多进程 实现拷贝文件 四个进程拷贝
- 大佬们,问下关于编译安装SSH的问题
- 嵌入式linux开机没有图片
- 关于Linux系统的问题。。
- 学习python和Linux需要在电脑上装虚拟机吗
- LDAP中如何更改userPassword的加密格式
- Python自动化运维 技术与最佳实践 pdf完整版免费下载
- 树莓派远程桌面系统安装 问题
- 内网穿透花生壳、Natapp、Ssh、autossh哪一个好?
- 求大侠!谢谢了!纠结好久了!cmake 时候出现CMake Error: Could not find cmake module file: CMake怎么办
- AIX 根目录满了,发现/DEV/null 2>&1文件很大,如何删除
- linux系统,程序通过Web端升级过程中遇到的问题
在看。
然后重启,是不是直接自己执行过httpd的执行文件。因为不是service起的,所以service kill不掉
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.
这里说,你的httpd已经在运行了
systemctl restart httpd
这样试试