2

Windows 10 启用 WSL 2

 2 years ago
source link: https://www.mokeyjay.com/archives/2966
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Windows.jpg

Windows 10 启用 WSL 2

什么是 WSL 和 WSL 2?微软官方中文文档有详细介绍
https://docs.microsoft.com/zh-cn/windows/wsl/about

Win10 家庭版也支持 WSL2

1051e2ada068d3bb36418582722c47d7.png
所有设置搜索启用或关闭 Windows 功能

680f536a1b8dbdaaf0e6c308420c5053.png
勾选 适用于 Linux 的 Windows 子系统虚拟机平台,点击确认,稍等片刻后提示你重启电脑

c454aacb6114c942153b8738901f27c2.png
重启后,点击这里 下载微软提供的 Linux 内核更新包

装完内核更新包后,在命令行输入 wsl --set-default-version 2 将 wsl2 设为默认值

至此,WSL2 已经配置完毕。你可以到 Windows Store 选择自己喜欢的 Linux 发行版

e3d81bd14254af49b4eb796559127969.png
我的话比较喜欢 Ubuntu,安装后,就能在开始菜单找到它

这里顺便再次安利一下 Windows Terminal,不会有人还不知道它吧?不会吧不会吧?

顺道一提,在资源管理器(此电脑)中输入 \\wsl$\ 就能访问 wsl2 里的文件了

LinuxWindowsWSL
本站文章除注明转载外,均为原创文章。如需转载请注明出处:https://www.mokeyjay.com/archives/2966

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK