在WSL(Windows Subsystem for Linux,适用于Linux的Windows子系统)下通过systemctl命令启动某些服务将造成System has not been booted with systemd as init system (PID 1). Can’t operate.这样的错误;
以启动docker 为例:文章来源:https://www.toymoban.com/news/detail-611125.html
sudo systemctl restart docker
错误信息如下:文章来源地址https://www.toymoban.com/news/detail-611125.html
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
- 解决方案
尝试使用以下方法启动服务:
sudo service docker start
到了这里,关于System has not been booted with systemd as init system (PID 1). Can‘t operate.解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!