centos执行systemctl restart命令报连接超时

centos执行systemctl restart命令报连接超时

Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.PolicyKit1 timed out (g-dbus-error-quark, 20)

Failed to restart minio.service: 连接超时

See system logs and 'systemctl status minio.service' for details.

类似的,这里是以minio举例

小白教程,一看就会,一做就成。

1.原因

是因为polkitd用户消失了或polkitd用户被注释了

2.解决

重新安装polkit(最直接)

yum -y install polkit

3.完成

centos执行systemctl restart命令报连接超时_第1张图片

你可能感兴趣的:(centos,centos,linux,运维,连接超时,restart命令连接超时)