Tianyi's Blog Tianyi's Blog
首页
  • 计算机网络
  • 操作系统
  • 计算机科学
  • Nginx
  • Vue框架
  • 环境配置
  • Java
  • JVM
  • Spring框架
  • Redis
  • MySQL
  • RabbitMQ
  • Kafka
  • Mirror Sites
  • Dev Tools
  • Docker
  • Jenkins
  • Scripts
  • Windows
  • 科学上网
  • 旅行
  • 网站日记
  • 软件
  • 电子产品
  • 杂野
  • 分类
  • 友情链接
GitHub (opens new window)

Tianyi

一直向前,永不停止
首页
  • 计算机网络
  • 操作系统
  • 计算机科学
  • Nginx
  • Vue框架
  • 环境配置
  • Java
  • JVM
  • Spring框架
  • Redis
  • MySQL
  • RabbitMQ
  • Kafka
  • Mirror Sites
  • Dev Tools
  • Docker
  • Jenkins
  • Scripts
  • Windows
  • 科学上网
  • 旅行
  • 网站日记
  • 软件
  • 电子产品
  • 杂野
  • 分类
  • 友情链接
GitHub (opens new window)
  • 镜像站

  • 环境

  • Docker

  • 工具

    • 环境配置
    • 从零开始的 WSL 之旅:从安装到配置
      • WSL安装
        • 配置镜像加速地址
        • Docker位置
      • oh-my-posh
      • GitHub 连接问题
    • Version Control(git)
    • dot-files
    • 开发工具Maven
    • github相关
  • Linux

  • 新知

  • Jenkins

  • Consul_服务注册发现

  • SHELL

  • 项目

  • 运维
  • 工具
tianyi
2024-03-04
目录

从零开始的 WSL 之旅:从安装到配置

推荐机器大小,最低内存推荐32G

# WSL安装

  1. Intel Virtual Technoiogy 在BIOS开启状态:确保您的系统支持并已经启用了 Intel Virtual Technology (Intel VT)。这是运行 WSL 2 所需的虚拟化技术。
  2. 安装 WSL:
    1. 手动安装步骤: 按照 Microsoft Learn 文档"旧版 WSL 的手动安装步骤" (opens new window)中描述的步骤进行操作。
    2. 使用 wsl --install 命令: 如果您的 Windows 版本支持,可以直接使用 wsl --install 命令进行自动化安装。

# 配置镜像加速地址

为了加快 Linux 发行版的软件包下载速度,可以配置国内的镜像源。在 WSL 中的 Linux 发行版配置文件(通常位于 /etc/docker/daemon.json)中添加以下内容:

{
  "registry-mirrors": [
    "https://82m9ar63.mirror.aliyuncs.com",
    "https://mirror.ccs.tencentyun.com"
  ]
}
1
2
3
4
5
6

# Docker位置

可以看到 docker 是一个子系统

# oh-my-posh

C:\Users\willo\AppData\Local\Programs\oh-my-posh\bin\oh-my-posh.exe init pwsh --config "$env:POSH_THEMES_PATH\bubbles.omp.json.omp.json" | Invoke-Expression
1

# GitHub 连接问题

对于无法连接 GitHub 的问题, GitHub 仓库 feng2208/github-hosts (opens new window) 提供了一种解决方案,即使用预配置的 hosts 文件来加速访问 GitHub。

  • https://github.com/feng2208/github-hosts (opens new window)
完善页面 (opens new window)
环境配置
Version Control(git)

← 环境配置 Version Control(git)→

最近更新
01
JDK
02-23
02
BadTasteCode && 优化
09-11
03
Gradle 实践操作指南及最佳实践
09-11
更多文章>
Theme by Vdoing | Copyright © 2021-2025 Tandy | 粤ICP备2023113440号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式