有谁知道什么会导致 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/