WSL中使用systemctl报错问题

Windows10里面自带的wsl中安装docker后不支持systemctl命令。需要更换命令,用Sysvinit的命令代替systemd,命令如下:

 

Systemd command Sysvinit command
systemctl start service_name service service_name start
systemctl stop service_name service service_name stop
systemctl restart service_name service service_name restart
systemctl status service_name service service_name status
systemctl enable service_name service service_name on
systemctl disable service_name service service_name off

 

posted @ 2021-06-26 23:44  kerwin cui  阅读(1436)  评论(1编辑  收藏  举报