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...
首先,需要打开“系统虚拟机平台”功能,在“控制面板\所有控制面板项\程序和功能”中选择“启用或者关闭Windows功能”,勾选对应选项即可: 也可以通过在管理员权限下的 cmd 或 PowerShell 中执行: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 下载wsl2 需要使用的 linux 内...
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.
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.
Method 2: WSL commands in the terminal It is possible to install the same Ubuntu versions available on the Microsoft Store directly from the command line. In a PowerShell terminal, you can run wsl --list --online to see an output with all available distros and versions: :class: no-copy...
WSL Version 0.0.0.0 Are you using WSL 1 or WSL 2? WSL 2 WSL 1 Kernel Version Not yet Distro Version Not yet Other Software No response Repro Steps wsl --install wsl --install -d kali-linux and wsl --update Expected Behavior I just want to see kali-linux installed and running Act...
This quickstart shows how to install SQL Server on Windows Subsystem for Linux (WSL 2) and then create and query a database with sqlcmd.
Alternatively, you can run one of these commands from PowerShell, or from the Command Prompt session in the Windows host: 1 2 3 4 5 PS>bash-c'hostname -I' 192.168.66.217 PS>wsl-- hostname -I 192.168.66.217 Now that we know the IP address, we can connect to PostgreSQL on WSL2 wi...
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: 控制台 复制 wsl --install For detailed instructions...
4. Set WSL2 as default Open the PowerShell again the run the following command to set WSL2 as default. wsl --set-default-version 2 5. Installing a Linux Distribution There are many Linux-distributions that are supported by WSL 2, such as Ubuntu, OpenSUSE, Kali, Debian, Fedora, and Pen...