wsl2启用systemctl

2023-11-13
  1. linux下配置wsl.conf文件,添加systemd配置项
    sudo vim /etc/wsl.conf
    
    [boot]
    systemd=true
    
  2. win重启linux子系统
    wsl.exe --shutdown