Skip to content

Commit b104b06

Browse files
docs: add administrator user prompt
1 parent 6791c1a commit b104b06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/tools/wsl.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ WSL 需要 **Windows 10 1709 专业版** 或者 **Windows 10 1803 及以上的
3131

3232
### 第二步:启动 WSL 功能
3333

34-
+ 方法一:使用命令开启:`Win+R`,输入 `powershell``pwsh``pwsh` 需要手动安装),输入命令:
34+
+ 方法一:使用命令开启:在开始菜单中搜索 `powershell``Windows Powershell``pwsh``pwsh` 需要手动安装),点击“以管理员身份运行”或“Run As Administrator”,输入命令:
3535

3636
```powershell
3737
> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
@@ -97,7 +97,7 @@ WSL 实际上并不是 Linux 内核,很多 Linux 应用与功能无法使用
9797

9898
### 第四步:启动虚拟机平台功能
9999

100-
+ 方法一:仍然打开 powershell,输入命令:
100+
+ 方法一:在开始菜单中搜索 `powershell``Windows Powershell``pwsh``pwsh` 需要手动安装),点击“以管理员身份运行”或“Run As Administrator”,输入命令:
101101

102102
```powershell
103103
> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
@@ -123,7 +123,7 @@ WSL 实际上并不是 Linux 内核,很多 Linux 应用与功能无法使用
123123

124124
#### 第六步:将 WSL 2 设置为默认版本
125125

126-
打开 cmd 或 powershell,输入以下命令:
126+
打开 cmd 或 powershell(可以使用普通用户,也可以使用管理员 / Administrator 身份或 Administrator 用户),输入以下命令:
127127

128128
```powershell
129129
> wsl --set-version Ubuntu-20.04 2
@@ -183,7 +183,7 @@ WSLg 需要电脑已经安装了 WSL 2 内核组件。
183183

184184
### 第四步:更新 wsl 内核版本
185185

186-
使用**管理员权限**打开 cmd 或 powershell,运行:
186+
使用**管理员 / Administrator 身份或 Administrator 用户**打开 cmd 或 powershell,运行:
187187

188188
```cmd
189189
> wsl --update

0 commit comments

Comments
 (0)