Loading

win10 安装 WSL2

安装步骤

  1. 命令行打开 powershell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  1. 查看系统是否符合WSL2的需要
    打开powershell, 运行systeminfo 查看 OS版本信息是否满足要求
  2. 启用 虚拟机feature
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  1. 重启
  2. 更新linux kernel
    1. 下载最新安装包 下载地址
    2. 运行更新程序
  3. 安装需要的linux发行版
  4. 设置一个发行版的WSL支持版本
wsl --set-version <distribution name> <version number>
  1. 查看每一个发行版的WSL支持版本
wsl -l -v

参考

  1. https://docs.microsoft.com/en-us/windows/wsl/install-win10
posted @ 2021-05-23 22:36  lif323  阅读(65)  评论(0编辑  收藏  举报