Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache httpd.service活动失败_Apache_Service_Server - Fatal编程技术网

Apache httpd.service活动失败

Apache httpd.service活动失败,apache,service,server,Apache,Service,Server,有人能帮我吗?怎么了? 我试图安装让我们加密 但是,当我执行“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 Mon 2018-05-07

有人能帮我吗?怎么了? 我试图安装让我们加密 但是,当我执行“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 Mon 2018-05-07 10:32:15 CST; 5min ago
  Docs: man:httpd(8)
        man:apachectl(8)
  Process: 21861 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 21859 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 21859 (code=exited, status=1/FAILURE)

May 07 10:32:15 JobSmile httpd[21859]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.24.141.99. Set the 'ServerName' directive globally to suppress this message
May 07 10:32:15 JobSmile httpd[21859]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
May 07 10:32:15 JobSmile httpd[21859]: no listening sockets available, shutting down
May 07 10:32:15 JobSmile httpd[21859]: AH00015: Unable to open logs
May 07 10:32:15 JobSmile systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 07 10:32:15 JobSmile kill[21861]: kill: cannot find process ""
May 07 10:32:15 JobSmile systemd[1]: httpd.service: control process exited, code=exited status=1
May 07 10:32:15 JobSmile systemd[1]: Failed to start The Apache HTTP Server.
May 07 10:32:15 JobSmile systemd[1]: Unit httpd.service entered failed state.
May 07 10:32:15 JobSmile systemd[1]: httpd.service failed.

May 07 10:32:15 JobSmile httpd[21859]:(
98)地址已在使用:AH00072:make_sock:无法绑定到地址0.0.0.0:80
解释了该问题。您的端口号80似乎正在使用…@RomeoSierra我该怎么办?我真的不明白这件事。你能帮忙吗?当然,端口80正在使用中。我想。由于服务器承载一个网站。两个选项。要么找出哪个进程占用端口(
netstat-nlp | grep 80
),然后终止它(
sudo kill-9
),这在您的情况下是不可能的。或者,将apache配置为在不同的端口中运行。怎么做?只要谷歌一下,你就会发现一千多个教学网站…@RomeoSierra谢谢我会的try@RomeoSierra我想我的系统中安装了2个httpd。我发现我的网站使用了与此不同的httpd.conf位置。我该怎么办?