Ubuntu 20.04 systemctl 错误:System has not been booted with systemd as init system (PID 1). Can't operate.
在 Ubuntu 20.04 系统中,使用 systemctl
命令启动 logstash,出现以下错误:
1 | $ systemctl start logstash |
这是因为 systemctl
不是 Ubuntu 系统自带的命令,可以通过 apt
命令进行安装:
1 | sudo apt install systemctl |
安装过程中,会提示你输入 Yes, do as I say! 以继续安装。
(END)
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.