现在,可以使用单个命令安装运行 WSL 所需的一切内容。 在管理员模式下打开 PowerShell 或 Windows 命令提示符,方法是右键单击并选择“以管理员身份运行”,输入 wsl --install 命令,然后重启计算机。 PowerShell复制 wsl--install 此命令将启用运行 WSL 并安装 Linux 的 Ubuntu 发行版所需的功能。 (可以更改此默认...
步骤1 - 启用适用于 Linux 的 Windows 子系统 步骤2 - 检查运行 WSL 2 的要求 步骤3 - 启用虚拟机功能 步骤4 - 下载 Linux 内核更新包 显示另外 5 个 为简单起见,通常建议使用wsl --install安装适用于 Linux 的 Windows 子系统,但如果运行的是旧版 Windows,则可能不支持这种方式。 下面介绍了手动安装步骤...
要在Windows 10(2004)上启用虚拟机平台,请以管理员身份打开 PowerShell 并运行: dism.exe/online/enable-feature/featurename:VirtualMachinePlatform/all/norestart 要在Windows 10(1903,1909)上启用虚拟机平台,请以管理员身份打开 PowerShell 并运行: Enable-WindowsOptionalFeature-Online-FeatureNameVirtualMachinePlatfor...
In this step-by-step guide, we will walk you through the process of installing WSL on Windows 10, opening up a whole new realm of possibilities for developers, system administrators, and Linux enthusiasts.
If an update is required, you'll need torestartyour computer. How to Install and Set up Linux on Windows with WSL Now that we have updated Windows, let's walk through the steps for installing WSL on your computer and go over a few setup considerations thereafter. ...
--enable-wsl1:在安装 Microsoft Store 版本的 WSL 的过程中也启用“适用于 Linux 的 Windows 子系统”可选组件,从而启用 WSL 1。 --no-distribution:安装 WSL 时不安装发行版。 备注 如果在 Windows 10 或更低版本上运行 WSL,可能需要在--install命令中包含-d标志以指定发行版:wsl --install -d <distribu...
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
WSL 2 can also be run on Windows inside a virtual machine as long as the VM software you use has support for nested virtualization and this is enabled. How to install WSL 2 on Windows 10 and 11 The installation process for WSL 2 is now so straightforward you're up and running in minu...
The Windows Subsystem for Linux (WSL) allows the running of Linux binary executables natively on Windows 10 and higher as well as Windows Server 2019 and higher. WSL uses a true Linux kernel through a subset of Hyper-V features. To learn how to install WSL for Windows, seeWindows Subsystem...
In the latest Windows Insider Preview builds, you can install everything you need to run WSL just by runningwsl.exe--install. We’re excited to announce that this functionality is now officially backported to Windows 10 version 2004 and higher, which will make installi...