安装wsl

1. 安装

wsl --install

2. 重启电脑

使用

可以直接在资源管理器里面输入这个链接

\\wsl$\Ubuntu\home\你的用户名

cmd里面使用

wsl -d Ubuntu
# 默认root用户
ubuntu config --default-user root