type
status
date
slug
summary
tags
category
icon
password
以管理员身份打开powershell

输入如下代码,回车

系统会自动启用WSL功能、安装虚拟机平台、下载Linux内核,并默认安装Ubuntu发行版。

校验是否安装成功?

执行wsl,出现如下错误

虽然 WSL 功能可能已经启用,但你还没有安装任何 Linux 发行版
直接执行以下命令,然后重启电脑
重启后,设置 WSL 2 为默认版本

安装 Linux 发行版

安装好后弹出

设置 Ubuntu 用户名和密码
点击 Windows 开始菜单,搜索Ubuntu


初始配置建议

安装 NodeJS 18+
验证安装:

- Author:NotionNext
- URL:http://preview.tangly1024.com/article/22ced26c-0da0-817a-9819-eee7686f911f
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!