理解wsl1 vs wsl2
发布日期:2021-05-07 14:23:29 浏览次数:28 分类:精选文章

本文共 864 字,大约阅读时间需要 2 分钟。

  • Overview

    The Windows Subsytem for Linux lets developers run a GNU/Linux environment – including most command-line tools, utilities, and applications – directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboost setup.

    我以前以为terminal里启动的是wsl,这个理解有误,启动的是Linux distribution,这个distribution是运行在wsl这个window服务之上的一个软件.

  • What is WSL 2

    WSL 2 is a new version of the Windows Subsystem for Linux architecture that powers the Windows Subsystem for Linux to run ELF64 Linux binaries on Windows.

    Its primary goals are to increase file system performance, as well as adding full system call compatibility.

  • Update to WSL2

    提到在windows powershell 中运行wsl -l -v显示:

    适用于 Linux 的 Windows 子系统没有已安装的分发版。

    可以通过访问 Microsoft Store 来安装分发版:
    https://aka.ms/wslstore

    不知道是不是我理解有误.

    不过在cmd中运行wsl -l -v却可以看到,也可以在这里将1转换为2.

    wsl --set-version Ubuntu-18.04 2
  • References

上一篇:(20201208已解决)WSL启动docker失败
下一篇:理解SIGNED endpoint

发表评论

最新留言

关注你微信了!
[***.104.42.241]2025年04月17日 03时36分31秒