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.完成

相关推荐
菜鸡000141 分钟前
安装G2O
linux
iru1 小时前
nginx被报CVE-2025-1695漏洞,检查后反馈是误报
运维·nginx
誰能久伴不乏1 小时前
epoll 学习踩坑:`fcntl` 设置非阻塞到底用 `F_SETFL` 还是 `F_SETFD`?
linux·服务器·网络·c++·tcp/ip
来鸟 鸣间2 小时前
MIPI D-PHY 理解
linux·音视频·sensor·mipi
么么...2 小时前
在 Ubuntu 上安装 Docker 并部署 MySQL 容器
linux·运维·经验分享·笔记·mysql·ubuntu·docker
翼龙云_cloud3 小时前
亚马逊云渠道商:Lightsail 如何制定备份与快照策略以平衡安全及成本?
运维·安全·云计算·aws
·云扬·3 小时前
Linux系统下MySQL服务器关键配置优化指南
linux·服务器·mysql
zhendianluli3 小时前
如何阅读理解用户手册里的函数文档, 以man 2 stat举例
linux·运维
打码人的日常分享3 小时前
企业数据资产管控和数据治理解决方案
大数据·运维·网络·人工智能·云计算
阿华hhh3 小时前
Linux系统编程(网络udp)
linux·服务器·c语言·网络·网络协议·udp