Liunx 在Win11上安装WSL和D[2026/9/2 21:04:18]
 

查看: 19  |  回复: 0
 Liunx 在Win11上安装WSL和Debian
楼主
发表于 昨天 20:48 

管理员运行 Powershell:

wsl --install

比较慢

# 安装Debian系统
wsl --install -d Debian
>>
正在下载: Debian GNU/Linux
正在安装: Debian GNU/Linux
已成功安装分发。可以通过 “wsl.exe -d Debian” 启动它
正在启动 Debian...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username:

别用 root 当用户名。WSL 这个提示是让你建一个普通用户(它后面要你输密码,建好后日常用它,需要提权时加 sudo)。直接用 root 当账户名虽然能建,但之后你永远以 root 跑、习惯不好,部分工具也会别扭。

随便起个名字就行,规则:小写字母、不能有空格。建议:


您需要登录后才可以回帖 登录 | 立即注册
【本版规则】请勿发表违反国家法律的内容,否则会被冻结账号和删贴。
用户名: 立即注册
密码:
2020-2026 MaNongKu.com