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 reinstall polkit
3.完成



![[Arduino电子近源渗透] Night of 19 v1.2.0](https://img-blog.csdnimg.cn/img_convert/057e486ef351b46a7c5c2867d9a80889.jpeg)











![[管理与领导-73]:IT基层管理者 - 辅助技能 - 4- 职业发展规划 - 如何持续提升自我](https://img-blog.csdnimg.cn/01ec4b180c824354aa6aaed8cc599b92.png)




