gpt4 book ai didi

apache - Httpd 启动时没有错误

转载 作者:行者123 更新时间:2023-12-04 19:37:23 25 4
gpt4 key购买 nike

我有一个错误片刻,我无法弄清楚发生了什么。

当我运行时:

systemctl start httpd.service

我得到以下信息:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

这是我从 systemctl status httpd.service 得到的:
janv. 05 13:51:14 systemd[1]: Starting The Apache HTTP Server...
janv. 05 13:51:14 httpd[8566]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/virtualhosts/S01_namevirtualhost:2
janv. 05 13:51:17 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
janv. 05 13:51:17 kill[8569]: kill: cannot find process ""
janv. 05 13:51:17 systemd[1]: httpd.service: control process exited, code=exited status=1
janv. 05 13:51:17 systemd[1]: Failed to start The Apache HTTP Server.
janv. 05 13:51:17 systemd[1]: Unit httpd.service entered failed state.
janv. 05 13:51:17 systemd[1]: httpd.service failed.

此外,这是 apachctl configtest 的结果:
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/virtualhosts/S01_namevirtualhost:2
Syntax OK

这是在我尝试更新服务器的 SSL 证书之后发生的,但是当我放回旧的 key 文件时,我遇到了同样的问题。我可能遗漏了一些东西,但我不知道是什么。

任何想法 ?

最佳答案

感谢@Dusan Bajic,我检查了日志文件......我忘记了。

我在这里发布解决方案以防有人遇到同样的问题:

/var/log/httpd/error_log :

[Thu Jan 05 14:50:11.311381 2017] [ssl:emerg] [pid 12726] AH02238: Unable to configure RSA server private key
[Thu Jan 05 14:50:11.311404 2017] [ssl:emerg] [pid 12726] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

这表明 SSL 的 key 无效。我重新创建了它们,现在一切都很好。

关于apache - Httpd 启动时没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41485533/

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