升級到WLS2


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發行版名稱

 版本轉換

 完成驗證

4. 參考

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM