systemctl 显示无法获得 D-Bus 连接:操作不允许

systemctl 显示无法获得 D-Bus 连接:操作不允许

操作系统:CentOS Linux release 7.5.1804 (Core),物理机非docker,非虚拟机

我先用 升级 clickhouse yum localinstall ./clickhouse-*.rpm,然后我后悔了,我用 降级 clickhouse yum downgrade clickhouse-xx-xx.rpm,然后我发现systemctl status clickhouse-serverthrow

# systemctl status clickhouse-server
Failed to get D-Bus connection: Operation not permitted

并且


[root@cu75 ~]# systemctl
Failed to get D-Bus connection: Operation not permitted
[root@cu75 ~]# systemctl start dbus
Failed to get D-Bus connection: Operation not permitted
[root@cu75 ~]#

但 dbus 正在运行

[root@cu75 ~]# ps -ef | grep dbus
dbus       1646      1  0  2021 ?        00:48:47 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root      44000      1  0 15:31 ?        00:00:00 /usr/sbin/abrt-dbus -t133
root      44363 429726  0 15:32 pts/0    00:00:00 grep --color=auto dbus
gdm      240198      1  0  2021 ?        00:00:00 dbus-launch --exit-with-session /usr/libexec/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
gdm      240199      1  0  2021 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
gdm      240224 240219  0  2021 ?        00:00:00 /bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
luhongw+ 436050      1  0 14:08 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
root     436172      1  0 14:09 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
[root@cu75 ~]#

我在这个网站上检查了所有类似的问题,但大多数都是docker镜像,有什么解决方案可以解决吗?

相关内容