echo -e "[boot]\nsystemd=true" | tee -a /etc/wsl.conf
或者执行 vi /etc/wsl.conf 写入下面内容
[boot]
systemd=true
引用自:在 windows10上使用 WSL2 安装 centOS9 系统(支持 systemd) - web 服务器配置 (lanmper.cn)
echo -e "[boot]\nsystemd=true" | tee -a /etc/wsl.conf
或者执行 vi /etc/wsl.conf 写入下面内容
[boot]
systemd=true
引用自:在 windows10上使用 WSL2 安装 centOS9 系统(支持 systemd) - web 服务器配置 (lanmper.cn)