wsl --install
#使用部署映像服务和管理工具(DISM)来启用Windows子系统Linux功能
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
#启用虚拟机平台功能
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
#将WSL的默认版本设置为2
wsl --set-default-version 2
阅读量
loading...