【Window】关于在window10上使用WSL2 ,Vscode实现运行ubuntu的一些记录

如何在 Windows 10 上安装 WSL 2

PowerShell让系统可以执行.ps1文件 

http://t.csdn.cn/Bsg0O

1.启用 WSL,以管理员身份打开 PowerShell 工具并运行以下命令

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

2 .启用“虚拟机平台” 

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

3.运行ubuntu

4.若要从 WSL 发行版打开项目,请打开发行版的命令行并输入:code .

猜你喜欢

转载自blog.csdn.net/MengYa_Dream/article/details/128337574