WSL Ubuntu 22.04 systemctl 命令报错

参考文献:Advanced settings configuration in WSL | Microsoft Learn 在 WSL Ubuntu 22.04 下,systemctl 命令报错以下内容: System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down 解决方案 安装 wsl-setup sudo apt install wsl-setup 配置…

WSL CentOS 7 安装 Python 3.10.0

参考文章 - CentOs 7 下安装python3_猫腻的博客-CSDN博客 - 在 CentOS 上编译安装 Python 3 - 知乎 (zhihu.com) CentOS 7 自带 Python 2.7.5,但我们需要的是 Python 3.10.0。我们需要先按安装依赖。 安装 yum-utils: yum install yum-utils 然后利用它提供的命令 yum-builddep 来安装当前系统中缺失的 Python 依赖软件: yum-builddep python3 我所使用的 WSL CentOS 7 镜像没有安装 pip,所以需要安装。…