网址
Caption
type
date
slug
summary
tags
category
icon
password
Post URL
Platforms
Notionsocial
Time
Likes
First Comment
Media
Views
Comments
Status
status
以管理员身份打开powershell

输入如下代码,回车

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

校验是否安装成功?

执行wsl,出现如下错误

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

安装 Linux 发行版

安装好后弹出

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


初始配置建议

安装 NodeJS 18+
验证安装:

- Author:易安
- URL:http://preview.tangly1024.com/article/25ded26c-0da0-816e-84ce-f8466a9279af
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!