【发布时间】: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