在WSL之外的另一个窗口,执行以下命令,重启 WSL 实例以使这些更改生效。 C:\Users\Administrator> wsl --shutdown 重新进入 WSL 后,再执行以下命令: systemctl restart systemd-networkd systemctl enable systemd-networkd systemctl restart systemd-resolved.service systemctl enable systemd-resolved.service...
wsl.exe --shutdown Upon launch, you should have systemd running. To check and show your services’ status, run the command below: systemctl list-unit-files --type=service Read: How to set Linux Distribution version to WSL1 or WSL2 in Windows That’s how you can enable Systemd in Windo...
After introducing Windows 11 on June 24, 2021, Microsoft officially began rolling it out to the public on Oct. 5. That means everyone with a supported PC should be able to get it right now by just heading into the Settings app and checking for updates. There's also a good chance you'...
WSL (Windows subsystem Linux) is a built-in Windows OS feature that allows us to run a GNU/Linux environment directly on a Windows 11/10 machine without a traditional virtual machine or dual boot setup. By default, the feature or service is disabled, but you can easily enable it from the...
2. Enable WSL: WSL needs to be enabled on your system. open PowerShell as administrator and run the following command: wsl --install This command installs WSL as well as Ubuntu by default; if you prefer another distribution, you can install it later. ...
1. Enable WSL required components To install the required system components to run Linux on Windows 11, use these steps: OpenStart. Search forTurn Windows Features on or offand click the top result to open the app. Check the“Virtual Machine Platform”option. ...
To enable systemd simply enter this into your wsl.conf file: [boot] systemd=true Now you can simply save and exit the file (CTRL+O to save and CTRL+X to exit). From here you need to close shutdown your WSL session entirely. Close out of Linux and go back to a PowerShell window ...
正在使用Windows 11版本或更高版本。(Windows Build 22000 或更高) 启用虚拟机平台的可选组件。 你可以通过在PowerShell提示符下运行:dism.exe/online/enable-feature/featurename:VirtualMachinePlatform/all 来完成。 点击链接【https://aka.ms/wslstorepage】进入WSL商店页面,点击“安装”来安装WSL,然后你可以安装...
Now, if you are trying toswitch from WSL 1 to version 2, then it’s not an update, it’s an upgrade, and this process is a little different. Thisguidewill teach you the easy steps to update the WSL platform on Windows 11. In addition, I’ll outline the steps to enable the option...
You will be able to use a complete Debian command line environment containing a full current stable release environment. If this is your first WSL app you might have to enable WSL first (or contact your device administrator to do so). https://docs.microsoft.com/en-us/windows/wsl/install ...