apache - 无法在 Centos 7 上启动 httpd 服务 "GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject"

标签 apache centos polkit

尝试(重新)启动 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.
这可能是什么原因造成的?我应该在哪里调试?

最佳答案

[Thu Jul 23 05:40:44.885963 2020] [ssl:emerg] [pid 2877:tid 140514669713280] AH02565:证书和私钥不匹配
看起来 key 和证书不匹配。请检查 key 和证书文件的 md5。

关于apache - 无法在 Centos 7 上启动 httpd 服务 "GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63025273/

相关文章:

c - 从服务生成 GUI

java - 需要第三方框架的 Multi-Tenancy 功能

node.js - 在单独的服务器上发布时,react 和 nodejs 发布问题

c++ -/usr/bin/ld : cannot find -ldlib/usr/bin/ld: cannot find -lcblas/usr/bin/ld: cannot find -llapack

oracle10g - 从 OS X 连接到 Vagrant box 上的 Oracle

c++ - 如何在 Linux 上使用 polkit 请求串口权限?

python - .htaccess 与 python 脚本

java - HttpUrlConnection - 奇怪的延迟

kubernetes - Kubelet 配置

python - 如何将 dbus 和 policykit 连接到我在 python 中的函数?