DOCKER

【已解决】Failed to get D-Bus connection: Operation not permitted

Failed to get D-Bus connection: Operation not permitted错误解决

在上一篇文章《Windos11下通过WSL安装centos7系统》 我们已经在Windows系统上安装了CentOS7系统了。当我们想要查看防火墙运行情况,使用命令:systemctl status firewalld.service。发现如下错误:

8deb7591346f2104cd2c192a610eba9d.png

不仅仅是查看防火墙清清裤。除了基于systemctl外service命令的服务也是无法运行的。比如我们常用的nginx\mysql\Docker等等。在执行的时候,都会出现如上错误。怎么解决呢?

暴力解决方案:直接更换systemctl文件

1:我们先来备份原来的systemctl文件。使用到命令:

mv 

原创不易,完成人机校验,阅读全文

相关推荐