WSL 2 中的新增功能What's New in WSL 2?

WSL 2 是 WSL 中体系结构的新版本,它更改了 Linux 分发版与 Windows 进行交互的方式。WSL 2 is a new version of the architecture in WSL that changes how Linux distributions interact with Windows. WSL 2 的主要目标是提高文件系统性能并增加完全的系统调用兼容性。WSL 2 has the primary goals of increasing file system performance and adding full system call compatibility. 每个 Linux 分发版都可以作为 WSL 1 或 WSL 2 运行,并可随时在它们之间进行切换。Each Linux distribution can run as WSL 1 or as WSL 2, and can be switched between at any time. WSL 2 是对基础体系结构的一次重大改造,它使用虚拟化技术和 Linux 内核来实现其新功能。WSL 2 is a major overhaul of the underlying architecture and uses virtualization technology and a Linux kernel to enable its new features.

只有 Windows 10 版本 2004 的内部版本 19041 或更高版本中才提供 WSL 2。WSL 2 is only available in Windows 10, Version 2004, Build 19041 or higher. 你可能需要更新 Windows 版本You may need to update your Windows version.

从 WSL 1 更新到 WSL 2Update from WSL 1 to WSL 2

有关 WSL 2 的常见问题解答Frequently Asked Questions about WSL 2

比较 WSL 2 和 WSL 1Comparing WSL 2 and WSL 1