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.

WSL 2 僅適用於 Windows 10 2004 版 (組建 19041 或更高版本)。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