【windows】 win11 安装 WSL( Windows Subsystem for Linux)

简介: 【windows】 win11 安装 WSL( Windows Subsystem for Linux)

一、启用windows 功能

image.png

  • 打开【控制面板】,点击【启用或关闭windows功能】
  • 选中【适用于 Linux 和 Windows 子系统】,点击确定
  • 等待系统重启




二、修改默认 WSL 版本


wsl --set-default-version 2


  • 将默认的 WSL 默认的 Linux 分发版本设为 2。



三、更新 WSL


  1. 下载内核更新包
    内核更新包下载地址
  2. 安装内核更新包


image.png


四、安装 linux

image.png



打开 【Microsoft Store】

image.png


  • 搜索【linux】关键字,点击第一个ubuntu系统安装




五、开始使用


image.png

  • 点击【打开】



六、解决Error code: Wsl/Service/0x800706f7


出现Error code: Wsl/Service/0x800706f7错误,只需要用管理员权限在cmd命令行执行:netsh winsock reset 即可。


image.png



七、完结


image.png

  • 可以看到已经安装完成。




八、附加


image.png


如上所示,这次安装WSL的目的其实使用linux命令,统计一下我的代码工程里的scss文件中的“px”有多少个。







目录
相关文章
|
9月前
|
安全 Linux 生物认证
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
372 0
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
|
9月前
|
Linux 虚拟化 iOS开发
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
1953 0
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
|
9月前
|
安全 Linux 生物认证
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
427 17
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
|
9月前
|
SQL 安全 Linux
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
470 1
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
|
9月前
|
Linux 网络安全 iOS开发
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
1071 1
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
|
9月前
|
Linux iOS开发 计算机视觉
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
657 0
|
9月前
|
安全 Linux iOS开发
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
807 53
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
|
9月前
|
存储 SQL 人工智能
Windows Server 2025 中文版、英文版下载 (2025 年 10 月更新)
Windows Server 2025 中文版、英文版下载 (2025 年 10 月更新)
1230 0
|
9月前
|
安全 数据安全/隐私保护 虚拟化
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
2301 2
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
|
9月前
|
安全 Unix 物联网
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)
1013 0
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)

热门文章

最新文章