powershell 管理员
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
或者通过开启windows功能: hyper-v,适用于linux的windows子系统
查看版本
wsl -l -o 安装 wsl --install Ubuntu-20.04 迁移到D盘:wsl --shutdownwsl --exportUbuntu-20.04 d:\ub.tar
wsl --unregisterUbuntu-20.04
wsl --importUbuntu-20.04 d:\vm\ubuntu\ d:\ub.tar
没有评论:
发表评论