mysql - CentOS HTTPD 和 MySql 不想启动

标签 mysql apache centos

我已经使用 VestaCP 一周了,我在论坛上询问了这个错误,但他们没有对我的主题使用react,所以我会在这里询问。

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.

我尝试过的: “百胜删除httpd mysql mysql-server mariadb”然后“百胜安装httpd mysql mysql-server mariadb”但它确实有效。

救命!

最佳答案

看起来您的 httpd 端口已被某些进程使用。 您的 VestaCP 是否与 Apache 工作在同一 80 端口? 如果是这样,您将无法运行 httpd 服务,除非将其更改为其他端口。

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

关于mysql - CentOS HTTPD 和 MySql 不想启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36725088/

相关文章:

mysql - 查询中的 SQL 子查询

java - JDBC连接池到同一台服务器上的多个MySQL数据库(使用相同的用户和密码)

java - JVM/Android 不信任 StartSSL 的根证书

linux - RedHat如何确定核心数

node.js - NodeJS - 如何使版本 6.9.1 永久化?

mysql - 如何关闭这个 ssh 隧道?

mysql - 如何使用 mysql 按产品 id 对结果进行分组

php - PHP解释后设置MIME类型

apache - Google Analytics 不计算来自 jmeter 的请求

php - 将 MS SQL 数据库与 MySQL 数据库同步