机器人 救救瓜
Toggle navigation
Home
SCM-tool
Linux
Jenkins
SVN
other
About Me
Archives
Tags
windows上快速搭建演示CI的demo
2025-06-26 16:00:30
1
0
0
gua_l
## 准备工作 1. 确保 Windows 版本 ≥ 1903(设置 → 系统 → 关于) 2. 准备管理员权限 PowerShell 3. 下载必备文件: - [WSL2 内核包](https://aka.ms/wsl2kernel)(直接下载链接) ##安装 WSL 环境 ``` #管理员 PowerShell 执行 #1 启用适用于 Linux 的 Windows 子系统 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart #2开启虚拟化功能 dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart #3安装上面下载的内核包或直接命令执行更新最新的版本 wsl --update #4将 WSL 2 设置为默认版本 wsl --set-default-version 2 ``` ##安装ubuntu ``` wsl --list --online #选一个可安装版本 wsl --install -d -Ubuntu-20.04 ``` 或者直接下载分发版本,点击安装 https://learn.microsoft.com/zh-cn/windows/wsl/install-manual#downloading-distributions
Pre: No Post
Next:
WSL 技术精要:Windows 的 Linux 兼容引擎
0
likes
1
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.