解决openEuler无法使用systemctl
>sudo systemctl start httpdSystem has not been booted with systemd as init system (PID 1). Can't operate.Failed to connect to bus: Host is down解决办法:apt install python2sudo mv /usr/bin/systemctl /us
·
> 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
更多推荐
已为社区贡献1条内容
所有评论(0)