之前在应用商店安装过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
mv systemctl.py /usr/bin/systemctl