【问题标题】:Elasticsearch Installation Issue: System has not been booted with systemd as init system (PID 1). Can't operateElasticsearch 安装问题:系统尚未使用 systemd 作为 init 系统 (PID 1) 启动。无法操作
【发布时间】:2020-08-20 10:30:46
【问题描述】:

我正在关注这个网站https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html 在我的 Ubuntu 子系统中安装 elasticsearch 以用于 Flask 应用程序。

但是,当我尝试执行以下命令时,

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.0-amd64.deb
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.0-amd64.deb.sha512
shasum -a 512 -c elasticsearch-7.8.0-amd64.deb.sha512 
sudo dpkg -i elasticsearch-7.8.0-amd64.deb

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

同样,当我关注这个页面https://phoenixnap.com/kb/install-elasticsearch-ubuntu时,输入sudo systemctl start elasticsearch.service后返回同样的错误。

我对编程很陌生,所以我对所有这些错误/警告的含义以及如何解决它不是很熟悉。我四处搜索,发现systemctl 无法在 Windows Ubuntu 中使用。但是,似乎没有一个解决方案适合我。

我可以得到一些建议吗?谢谢!

【问题讨论】:

    标签: windows ubuntu elasticsearch


    【解决方案1】:

    解决了!使用sudo service elasticsearch start 会激活elasticsearch。

    【讨论】:

    • 多好!谢谢!!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-07-25
    • 2020-04-15
    • 2019-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-16
    相关资源
    最近更新 更多