打开Microsoft Store,搜索 Terminal,安装Windows Terminal,用于后面和 WSL 子系统交互。 搜索Ubuntu,选择安装。 安装完成后,第一次打开 Ubuntu 的时候,将打开一个控制台窗口,会等待几分钟来进行配置,启动完成后为 Ubuntu 创建一个用户和密码(如果第一次启动ubuntu失败,可以重启windows10系统再次试下)。 使用Windows Ter...
wsl --install命令在Powershell 因为发现问题,于是按照微软官方操作指南选择手动安装。 打开Powershell,输入以下命令: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 这一条是为系统启动Linux子系统。 在输入命令后,检查系统版本。 WIN+R运行,输入“WINVER”,检查...
1\. INSTALL WSL 2 RUN POWERSHELL as administrator ⚙️ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux RESTART ⚙️ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart ⚙️ dism.exe /online /enable-feature /featurename:M...
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.
We will use windows command(PowerShell) terminal for enabling WSL. You'd better to open a terminal as administrator to get enough permission to execute the commands. Step 1. Enable The Win10 Subsystem for Linux We can install a Linux distribution only when the feature "Microsoft-Windows-Subsys...
WSL 是运行在 Windows 上的 Linux 子系统,无缝集成了 Linux 发行版的同时,还不会产生传统虚拟机或双启动导致的性能开销。可以说,有了 WSL 之后,配合 VSCode,Windows 开发环境的易用性已经超越了 MacOS。 WSL2 的开启方法 在Windows 10 或者 Windows 11 中,使用管理员打...
此外,你可以通过在 PowerShell 或 Windows 命令提示符中输入 wsl --list --online 命令,找到可供安装的 Linux 发行版列表。要安装 Ubuntu 默认版本以外的发行版,使用这个命令:wsl --install -d 将替换为之前列表命令中找到的 Linux 发行版的名称。这个安装命令可以用于第一次安装,或者在你已经安装了 WSL 和默认...
在Windows 10中启用WSL2功能,提升使用Linux体验,并快速安装Docker。首先,在“控制面板”中选择“启用或关闭Windows功能”,勾选“适用于Linux的Windows子系统”。也可以通过CMD或PowerShell执行相应命令来完成。下载并安装Linux内核更新包。配置完成后,选择Ubuntu作为Linux发行版。初次启动Ubuntu时,系统会...
Install WSL Duration: 7:00 Installing WSL is now easier than ever. Search for Windows PowerShell in your Windows search bar, then select Run as administrator. At the command prompt type: wsl --install And wait for the process to complete. For WSL to be properly activated, you will now ...
Install WSL 2. Ensure you're running Windows 10 version 2004 or a later version (Build 19041 and higher), or Windows 11. To install WSL, open a PowerShell or Windows command prompt in administrator mode, and run the following command: ...