gpt4 book ai didi

mysql - CentOS HTTPD 和 MySql 不想启动

转载 作者:行者123 更新时间:2023-11-29 11:35:11 25 4
gpt4 key购买 nike

我已经使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com