返回顶部
首页 > 资讯 > 服务器 >System has not been booted with systemd as init system (PID 1). Can‘t operate.解决方法
  • 217
分享到

System has not been booted with systemd as init system (PID 1). Can‘t operate.解决方法

linux运维服务器 2023-08-23 13:08:13 217人浏览 独家记忆
摘要

在WSL(windows Subsystem for linux,适用于Linux的Windows子系统)下通过systemctl命令启动某些服务将造成System has not been booted with systemd as i

WSL(windows Subsystem for linux,适用于Linux的Windows子系统)下通过systemctl命令启动某些服务将造成System has not been booted with systemd as init system (PID 1). Can’t operate.这样的错误;

以启动Docker 为例:

sudo systemctl restart docker

错误信息如下:

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

来源地址:https://blog.csdn.net/u012833399/article/details/128533933

--结束END--

本文标题: System has not been booted with systemd as init system (PID 1). Can‘t operate.解决方法

本文链接: https://lsjlt.com/news/378610.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作