wsl2
1、WSL2安装
1、管理员身份打开powerShell,启用“虚拟机平台”可选功能
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
2、使能虚拟机
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3、Microsoft Store安装ubuntu,下载安装好直接启动
2、如果WIN10没有Microsoft Store,下载下面链接的包,运行BAT批处理脚本即可
https://github.com/kkkgo/LTSB-Add-MicrosoftStore
3、安装好后的WSL2与WINDOWS间文件共享
启动WSL后,它自动挂载了WINDOWS的盘,在/mnt挂载节点下