如何从 WSL 控制台重新启动当前的 WSL 实例?
通常的“嫌疑人”不起作用:
reboot
shutdown -r
Run Code Online (Sandbox Code Playgroud)
他们失败并显示以下消息:
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Run Code Online (Sandbox Code Playgroud)
还有其他方法可以强制 WSL 重新启动吗?