我正在尝试重新启动httpd,但是出错了。
$ systemctl restart httpd
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
经过调查,了解到这是一个dbus问题,尝试了rest总线,但是得到了与上面相同的错误。在检查/var/log/消息时,我得到以下错误:
[1559812709.0738] bus-manager: could not connect to the system bus (Could not connect: No such file or directory); only the private D-Bus socket will be available
Jun 6 14:48:32 db1 NetworkManager[329115]: [1559812712.0731] bus-manager: could not connect to the system bus (Could not connect: No such file or directory); only the private D-Bus socket will be available
$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
注意:/var
和/
在同一个分区,我也无法重新启动NetworkManager
发布于 2020-01-17 15:06:19
我错误地删除了/var/run
,也遇到了同样的问题。
解决了重新创建链接:
ln -s /run/dbus /var/run/dbus
https://unix.stackexchange.com/questions/523250
复制相似问题