惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
Spread Privacy
Spread Privacy
T
Threatpost
C
Cisco Blogs
P
Palo Alto Networks Blog
AI
AI
Cyberwarzone
Cyberwarzone
NISL@THU
NISL@THU
P
Privacy & Cybersecurity Law Blog
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
T
Tor Project blog
Latest news
Latest news
AWS News Blog
AWS News Blog
D
Docker
S
SegmentFault 最新的问题
博客园 - 聂微东
WordPress大学
WordPress大学
Vercel News
Vercel News
S
Securelist
爱范儿
爱范儿
J
Java Code Geeks
Know Your Adversary
Know Your Adversary
S
Schneier on Security
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
D
DataBreaches.Net
宝玉的分享
宝玉的分享
D
Darknet – Hacking Tools, Hacker News & Cyber Security
MongoDB | Blog
MongoDB | Blog
Engineering at Meta
Engineering at Meta
K
Kaspersky official blog
美团技术团队
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
量子位
博客园_首页
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
腾讯CDC
T
Threat Research - Cisco Blogs
雷峰网
雷峰网
有赞技术团队
有赞技术团队
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed
S
Security Affairs

博客园 - .net's

SSH 服务器与客户端配置最佳实践 在Kubernetes中探索Pod多容器模式 特性:定义共享行为 译:Zed 解码:为什么不直接嵌入 Neovim? 9大关于生产力的错误认知 如何用费曼技巧快速学习任何东西 如何高效使用 Todoist — 完整指南 译:Building a Text Editor in the Times of AI 在AI时代构建文本编辑器 Combine and Conquer in Vim aa babel new Parse import.meta.url Installing Yarn on WSL vim备忘录 -- 可视模式 vim 备忘录 -- 插入模式 Windows Terminal PowerShell智能提示 安装配置Oh My Posh windows 10安装和配置NeoVim 0.8.2 Search and replace
wsl 2安装
.net's · 2023-02-19 · via 博客园 - .net's

以管理员身份打开 PowerShell(“开始”菜单 >“PowerShell” >单击右键 >“以管理员身份运行”),然后输入以下命令:

步骤 1 - 启用适用于 Linux 的 Windows 子系统

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

步骤 2 - 检查运行 WSL 2 的要求

若要更新到 WSL 2,需要运行 Windows 10。

对于 x64 系统:版本 1903 或更高版本,内部版本为 18362 或更高版本。
对于 ARM64 系统:版本 2004 或更高版本,内部版本为 19041 或更高版本。
或 Windows 11。

步骤 3 - 启用虚拟机功能

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

步骤 4 - 下载 Linux 内核更新包

下载最新包:
适用于 x64 计算机的 WSL2 Linux 内核更新包

步骤 5 - 将 WSL 2 设置为默认版本

wsl --set-default-version 2

更改默认安装的 Linux 发行版

wsl --install -d <Distribution Name>

若要查看可通过在线商店下载的可用 Linux 发行版列表,请输入:wsl --list --online 或 wsl -l -o。

卸载安装的 Linux 发行版

wsl --unregister Ubuntu

安装 WSL 2 和 Linux 发行版后,打开 Linux 发行版(可在 Windows 的开始菜单中找到),并使用命令 lsb_release -dc 查看版本和代码名称。

https://learn.microsoft.com/zh-cn/windows/dev-environment/javascript/nodejs-on-wsl