root@c70f0137a5bf:/var/log# systemctl restart rsyslog.service Failed to connect to bus: No such file or directory
时间: 2024-02-12 09:02:39 浏览: 146
./nginx: No such file or directory
5星 · 资源好评率100%
这个错误通常表示系统的systemd服务没有运行,导致无法连接到DBus。您可以尝试启动systemd服务并重启rsyslog服务。使用以下命令启动systemd服务:
```
sudo systemctl daemon-reload
sudo systemctl start systemd-logind.service
```
然后再尝试重启rsyslog服务:
```
sudo systemctl restart rsyslog.service
```
阅读全文