解决openEuler无法使用systemctl

> sudo systemctl start httpd

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

解决办法:

apt install python2
 
sudo mv /usr/bin/systemctl /usr/bin/systemctl.old
curl https://gitee.com/missyoyo/docker-systemctl-replacement/raw/master/files/docker/systemctl.py >temp
sudo mv temp /usr/bin/systemctl
sudo chmod +x /usr/bin/systemctl

上一篇:Openeuler安装完整man手册


下一篇:OpenEuler树莓派基础实验2(无树莓派)