WLS2相对WSL1有重大改变,其中最重要的是subsystem linux可以说是真正意义上的linux发行版了,当然也提升了i/o性能。

1. 升级windows

WSL 2 is only available in Windows 10 builds 18917 or higher

我们需要先升级windows 系统版本,首先变成一个insider,去这里:https://insider.windows.com/en-us/

2. 启用配置

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

重启电脑

3. 子系统转换

先确定你的linux发行版名称

升级到WLS2

 版本转换

升级到WLS2

 完成验证

升级到WLS2

4. 参考

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

 

相关文章:

  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-14
  • 2022-12-23
  • 2021-12-05
  • 2021-10-08
  • 2022-02-09
  • 2021-09-15
  • 2022-03-07
相关资源
相似解决方案