找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 23|回复: 0

启用 WSL 功能

[复制链接]

2

主题

0

回帖

30100万

积分

管理员

积分
301000000
发表于 4 小时前 | 显示全部楼层 |阅读模式
# 1. 启用 WSL 功能
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

# 2. 启用虚拟机平台 (WSL 2 需要)
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart


# 1. 启用WSL功能
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

# 2. 启用虚拟机平台(WSL 2必需)
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

# 3. 重启你的电脑
shutdown /r /t 0


# 将WSL 2设置为默认架构
wsl --set-default-version 2

# 安装并设置Ubuntu发行版到指定位置
wsl --install --location D:\WSL\Ubuntu

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2026-5-11 14:26 , Processed in 0.041197 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表