CentOS HTTPD和MySql不想启动

时间:2016-04-19 17:12:09

标签: mysql apache centos

我现在使用VestaCP一周了,我在论坛上问了这个错误,但是他们没有对我的话题做出反应,所以我会在这里问一下。

Apache和MySql不会启动 如果我输入:/ bin / 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 Tue 2016-04-19 19:04:53 CEST; 10s ago
  Process: 4447 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 4446 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 4446 (code=exited, status=1/FAILURE)

Apr 19 19:04:53 main-vps-centos httpd[4446]: (98)Address already in use: AH0...0
Apr 19 19:04:53 main-vps-centos httpd[4446]: (98)Address already in use: AH0...0
Apr 19 19:04:53 main-vps-centos httpd[4446]: no listening sockets available,...n
Apr 19 19:04:53 main-vps-centos httpd[4446]: AH00015: Unable to open logs
Apr 19 19:04:53 main-vps-centos systemd[1]: httpd.service: main process exit...E
Apr 19 19:04:53 main-vps-centos kill[4447]: kill: cannot find process ""
Apr 19 19:04:53 main-vps-centos systemd[1]: httpd.service: control process e...1
Apr 19 19:04:53 main-vps-centos systemd[1]: Failed to start The Apache HTTP ....
Apr 19 19:04:53 main-vps-centos systemd[1]: Unit httpd.service entered faile....
Apr 19 19:04:53 main-vps-centos systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

我尝试了什么: " Yum删除httpd mysql mysql-server mariadb"然后"百胜安装httpd mysql mysql-server mariadb"但它做得很好。

帮助!

1 个答案:

答案 0 :(得分:1)

您的httpd端口似乎已被某些进程使用。 你的VestaCP和Apache一样在80端口工作吗? 如果是这样,您就无法运行httpd服务,直到将其更改为其他端口。

您还应该尝试netstat -lptu找出首先使用该端口的进程。