gpt4 book ai didi

apache - 启动后出现错误 : PID file/run/httpd/httpd. pid 不可读(还?)。 ( Apache )

转载 作者:行者123 更新时间:2023-12-02 08:26:08 24 4
gpt4 key购买 nike

有谁知道什么会导致 Apache 的错误日志中出现此错误(特别是在 Arch Linux 中):

PID file /run/httpd/httpd.pid not readable (yet?) after start.

该错误不会阻止 Apache 正常运行(一旦启动),但可能会显着减慢我的服务重新启动时间。

如有任何指导,我们将不胜感激。

最佳答案

解决办法是调整文件/usr/lib/tmpfiles.d/apache.conf。默认值是错误的。你必须改变这个

d /run/httpd 0755 root root -

d /run/httpd 0755 http http -

.

重新启动 apache 后,将使用 chown http:http 而不是 chown root:root 创建 PID 文件。

资源:

关于apache - 启动后出现错误 : PID file/run/httpd/httpd. pid 不可读(还?)。 ( Apache ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16156761/

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