Apachet(httpd)不在Centos 7上启动-httpd.service的作业失败,因为控制进程退出并显示错误代码

时间:2019-05-30 10:21:10

标签: apache centos centos7

因此,今天早上我从Webmin删除了一个域,此后,我的Centos 7 VPS上的所有网站均无法正常运行。我看到Apache没有启动,并且 systemctl重新启动httpd 之后,我得到了:

httpd.service的

Job失败,因为控制进程退出并显示错误代码。有关详细信息,请参见“ systemctl状态httpd.service”和“ journalctl -xe”。

systemctl状态为httpd.service 之后,我得到了:

httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor 
preset: disabled)
Active: failed (Result: exit-code) since Thu 2019-05-30 12:57:01 EEST; 6s 
ago
 Docs: man:httpd(8)
       man:apachectl(8)
 Process: 6445 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, 
 status=1/FAILURE)
 Process: 6443 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND 
 (code=exited, status=1/FAILURE)
  Main PID: 6443 (code=exited, status=1/FAILURE)

 May 30 12:57:01 mamatextile.mamatextile.cz systemd[1]: Starting The 
 Apache HTTP Server...
 May 30 12:57:01 mamatextile.mamatextile.cz httpd[6443]: (98)Address 
 already in use: AH00072: make_sock: could not bind to address 
  89. .....  
 May 30 12:57:01 mamatextile.mamatextile.cz httpd[6443]: no listening 
 sockets available, shutting down
 May 30 12:57:01 mamatextile.mamatextile.cz httpd[6443]: AH00015: Unable 
 to open logs
 May 30 12:57:01 mamatextile.mamatextile.cz systemd[1]: httpd.service: 
 main process exited, code=exited, status=1/FAILURE
 May 30 12:57:01 mamatextile.mamatextile.cz kill[6445]: kill: cannot find 
 process ""
 May 30 12:57:01 mamatextile.mamatextile.cz systemd[1]: httpd.service: 
 control process exited, code=exited status=1
 May 30 12:57:01 mamatextile.mamatextile.cz systemd[1]: Failed to start 
 The Apache HTTP Server.
 May 30 12:57:01 mamatextile.mamatextile.cz systemd[1]: Unit httpd.service 
 entered failed state.
 May 30 12:57:01 mamatextile.mamatextile.cz systemd[1]: httpd.service 
 failed.

journalct -xe

之后
-- Unit httpd.service has begun starting up.
May 30 13:17:08 mamatextile.mamatextile.cz httpd[7981]: (98)Address 
already in use: AH00072: make_sock: could not bind to address 89. .....
May 30 13:17:08 mamatextile.mamatextile.cz httpd[7981]: no listening 
sockets available, shutting down
May 30 13:17:08 mamatextile.mamatextile.cz httpd[7981]: AH00015: Unable to 
open logs
May 30 13:17:09 mamatextile.mamatextile.cz systemd[1]: httpd.service: main 
process exited, code=exited, status=1/FAILURE
May 30 13:17:09 mamatextile.mamatextile.cz kill[7983]: kill: cannot find 
process ""
May 30 13:17:09 mamatextile.mamatextile.cz systemd[1]: httpd.service: 
control process exited, code=exited status=1
May 30 13:17:09 mamatextile.mamatextile.cz systemd[1]: Failed to start The 
Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.

在httpd -t之后,它表示语法可以。

0 个答案:

没有答案