我如何获得Systemd文件在wls Ubuntu 20.04上工作

时间:2020-05-18 20:59:27

标签: linux windows-subsystem-for-linux systemd ubuntu-20.04

我创建了一个名为 pointless.service 的服务文件,但是当我运行时 sudo systemctl start pointless返回了 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 pointless start 但它返回了pointless: unrecognized service。 我正在使用wsl ubuntu 20.04 以上命令适用于已安装的软件,例如Nginx,Redis e.t.c.但不适用于我的任何文件

0 个答案:

没有答案