【问题标题】:Elastic search kibana installation弹性搜索 kibana 安装
【发布时间】:2019-11-21 18:12:22
【问题描述】:

我正在尝试使用 ubuntu 在 linux 的 windows susbsytem 中安装 elasticsearch。 它在尝试连接弹性搜索时安装了所需的软件包,它引发了一些错误,例如 .如何解决这个问题。

venkat@DESKTOP-4KU4062:~$ sudo /bin/systemctl daemon-reload
System has not been booted with systemd as init system (PID 1). Can't operate.
venkat@DESKTOP-4KU4062:~$ sudo /bin/systemctl enable elasticsearch.service
Synchronizing state of elasticsearch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch
venkat@DESKTOP-4KU4062:~$ sudo /bin/systemctl start elasticsearch.service
System has not been booted with systemd as init system (PID 1). Can't operate.
venkat@DESKTOP-4KU4062:~$ sudo /bin/systemctl start elasticsearch.service
System has not been booted with systemd as init system (PID 1). Can't operate.
venkat@DESKTOP-4KU4062:~$ curl 127.0.0.1:9200
curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused

【问题讨论】:

    标签: elasticsearch logstash kibana elastic-stack elk


    【解决方案1】:

    试试sudo -i service elasticsearch start 看看是否成功。

    【讨论】:

      【解决方案2】:

      使用 'systemctl' 和 'service' 启动服务对于不同的操作系统是不同的,也取决于它们的版本。它基本上基于您使用的 Ubuntu 版本。

      对于此问题“系统尚未使用 systemd 作为 init 系统 (PID 1) 启动。无法运行。” :

      使用sudo service daemon-reload start 代替sudo /bin/systemctl daemon-reload

      在上面的命令中用 daemon-reload 替换其他服务。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-03-08
        • 1970-01-01
        • 1970-01-01
        • 2018-11-12
        • 2019-02-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多