
Systemctl 在 WSL2 中的 Centos7 错误
5星
- 浏览量: 0
- 大小:None
- 文件类型:None
简介:
简介:本文探讨了在Windows Subsystem for Linux 2 (WSL2)中使用CentOS 7时,遇到的与systemctl命令相关的问题,并提供了解决方案。
解决错误 Failed to get D-Bus connection: Operation not permitted(WSL+CentOS7 错误):
1. 备份旧文件:
```
mv /usr/bin/systemctl /usr/bin/systemctl.old
```
2. 替换新文件:
```
cp systemctl /usr/bin/systemctl
```
3. 给执行权限:
```
chmod +x /usr/bin/systemctl
```
4. 停止 LxssManager 服务:
```
net stop LxssManager
```
5. 启动 LxssManager 服务:
```
net start LxssManager
```
全部评论 (0)
还没有任何评论哟~


