windows wsl 手动安装centos7
0.下载centos7.zip
https://github.com/yuk7/CentWSL/releases/download/7.0.1907.3/CentOS7.zip"
1.安装choco(windows的包管理工具类似于brew)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New -Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
2.安装lxrunoffline 管理wsl的一个工具
choco install lxrunoffline -y
3.手动安装centos7.zip 解压出来的rootfs.tar.gz
lxrunoffline install -n CentOS -d D:/centos -f .\rootfs.tar.gz
4.运行wsl