win 子系统导入centos7

2023-03-14,,

之前在应用商店安装过ubuntu的,有钱的建议从商店购买

window配置 ,

准备一个centos系统,我是从已有系统导出的,导出命令

tar -cvf ./centos.tar ./ --exclude=centos.tar   --exclude=./proc* --exclude=./tmp/*

使用windows powershell 导入 centos 系统,导入出命令

wsl  --import centos7 D:\centos D:\centos.tar

wsl  --help  参考

powershell查看当前系统 ,未启用是 stop 状态

启用 cetnos

wsl -d centos

设为默认系统

wsl -s centos

其它详细操作查看 wsl 文档

下载此文件到 /usr/bin/ 目录 下并解压 ,

https://files.cnblogs.com/files/allen817/systemctl.zip?t=1677310282

https://github.com/gdraheim/docker-systemctl-replacement/tree/master/files/docker

win 子系统导入centos7的相关教程结束。

《win 子系统导入centos7.doc》

下载本文的Word格式文档,以方便收藏与打印。