当尝试(重新)启动httpd服务时,我收到以下错误:
**(pkttyagent:2574): WARNING**: 01:33:55.345: Unable to register authentication agent:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject Error registering authentication agent:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0) 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
没有阐明这个问题:
httpd.service - Web server Apache
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-07-22 01:33:55 BST; 26min ago
Process: 2578 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)
Jul 22 01:33:55 server... systemd[1]: Starting Web server Apache...
Jul 22 01:33:55 server... systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 22 01:33:55 server... systemd[1]: Failed to start Web server Apache.
Jul 22 01:33:55 server... systemd[1]: Unit httpd.service entered failed state.
Jul 22 01:33:55 server... systemd[1]: httpd.service failed.
可能是什么原因导致的?我应该在哪里进行调试?
2条答案
按热度按时间xkrw2x1b1#
[Thu 2020年7月23日05:40:44.885963] [安全套接字:紧急] [PID 2877:每日三次140514669713280] AH02565:证书和私钥不匹配
密钥和证书似乎不匹配。请检查密钥和证书文件的md5。
66bbxpm52#
这通常发生在尝试重新启动systemd服务时。
解决方法如下:
以根用户身份运行
groupadd -g 23无hid进程
usermod -a -G网络编程工具
挂载-o重新挂载,rw,隐藏ID =2,gid=无隐藏过程/过程
systemctl重新启动polkit