WSL 2
Less than 1 minute
Introduction
安装
Enable the Windows Subsystem for Linux
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Check requirements for running WSL 2
版本检查,要运行 WSL2 Windows 的版本必须大于一定版本,具体需要参考官方文档。
Enable Virtual Machine feature
启用虚拟功能
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Download the Linux kernel update package
下载内核更新包
Set WSL 2 as your default version
wsl --set-default-version 2