参考链接:https://askubuntu.com/questions/1379425/system-has-not-been-booted-with-systemd-as-init-system-pid-1-cant-operate
win11-WSL2 运行 systemctl status
报错如下:
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
解决方案如下:
sudo vim /etc/wsl.conf
加上一行
[boot]
systemd=true
重启 WSL2 即可