WSL
Windows 服务管理
LxssManager 服务
- Linux 子系统(WSL)是基于 LxssManager 服务运行的
- 若要重启 WSL,只需重启 LxssManager 服务即可
停止与启用服务
停止 LxssManager 服务:
net stop LxssManager
启动 LxssManager 服务:
net start LxssManager
强制停止服务
使用以下命令可以强制停止 LxssManager 服务:
tasklist /svc /fi "imagename eq svchost.exe" | findstr LxssManager
对应的进程为:
- svchost.exe 26080 LxssManager
工作在图形界面下
视频
https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
- 更新 wsl 版本(可能需要 windows11)
wsl --update
- 更新到最新的显卡驱动
音频
sudo apt install libpulse0
https://www.linuxuprising.com/2021/03/how-to-get-sound-pulseaudio-to-work-on.html
开启 systemd
https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/