Apache在安装后无法启动

Apache在安装后无法启动,apache,centos7,Apache,Centos7,我刚刚开始在Centos 7中使用Linode。我从来没有创建过自己的服务器来托管网站,所以提前表示歉意 我已经阅读了每个stackoverflow(和其他网站)关于这个问题的问答,我似乎无法解决它 我安装了Apache2并遵循Linodes网站上的教程。服务器未启动,出现以下错误: 当我运行-systemctl status httpd.service时 httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/system

我刚刚开始在Centos 7中使用Linode。我从来没有创建过自己的服务器来托管网站,所以提前表示歉意

我已经阅读了每个stackoverflow(和其他网站)关于这个问题的问答,我似乎无法解决它

我安装了Apache2并遵循Linodes网站上的教程。服务器未启动,出现以下错误:

当我运行-systemctl status httpd.service时

httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: failed (Result: exit-code) since Sun 2015-11-08 16:18:47 GMT; 10s ago
Process: 15662 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 15661 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
Main PID: 15661 (code=exited, status=0/SUCCESS)

Nov 08 16:18:47 london systemd[1]: Starting The Apache HTTP Server...
Nov 08 16:18:47 london httpd[15661]: httpd (pid 15652) already running
Nov 08 16:18:47 london kill[15662]: kill: cannot find process ""
Nov 08 16:18:47 london systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 08 16:18:47 london systemd[1]: Failed to start The Apache HTTP Server.
Nov 08 16:18:47 london systemd[1]: Unit httpd.service entered failed state.
当我运行-journalctl-xn时

Logs begin at Thu 2015-10-22 20:33:26 BST, end at Sun 2015-11-08 16:18:47 GMT.
Nov 08 16:10:01 london systemd[1]: Starting Session 2857 of user root.
Subject: Unit session-2857.scope has begun with start-up
Defined-By: systemd
Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Unit session-2857.scope has begun starting up.
Nov 08 16:10:01 london systemd[1]: Started Session 2857 of user root.
Subject: Unit session-2857.scope has finished start-up
Defined-By: systemd
Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Unit session-2857.scope has finished starting up.

The start-up result is done.
Nov 08 16:10:01 london CROND[15635]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Nov 08 16:15:02 london sshd[15647]: Received disconnect from 43.229.53.26: 11:  [preauth]
Nov 08 16:18:47 london systemd[1]: Starting The Apache HTTP Server...
Subject: Unit httpd.service has begun with start-up
Defined-By: systemd
Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Unit httpd.service has begun starting up.
Nov 08 16:18:47 london httpd[15661]: httpd (pid 15652) already running
Nov 08 16:18:47 london kill[15662]: kill: cannot find process ""
Nov 08 16:18:47 london systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 08 16:18:47 london 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.
我完全不知道,也看不出我错在哪里。有人能帮忙吗


非常感谢

看起来apache已经在运行了。杀死旧的httpd进程
ps-efw | grep httpd
sudo pkill httpd
,然后重新填充堆栈
systemctl restart httpd
还有另一个注意事项,apache在哪里配置为日志?请注意您可能收到的任何其他错误。谢谢@JeffSheffield,我将尝试一下!现在,Apache有时会让人恼火,它可以安装在很多发行版上,并且有几种不同的布局方式,而且每个发行版的做法都不一样。