elasticsearch Active:失败(结果:退出代码)

elasticsearch Active:失败(结果:退出代码)
[root@66-226-73-146 elasticsearch]# sudo service elasticsearch restart
Restarting elasticsearch (via systemctl):                  [  OK  ]
[root@66-226-73-146 elasticsearch]# sudo service elasticsearch status
? elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2017-12-12 13:16:29 PST; 28s ago
     Docs: http://www.elastic.co
  Process: 22572 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
  Main PID: 22572 (code=exited, status=1/FAILURE)

Dec 12 13:16:29 66-226-73-146.phx.dedicated.codero.com systemd[1]: Started El...
Dec 12 13:16:29 66-226-73-146.phx.dedicated.codero.com systemd[1]: Starting E...
Dec 12 13:16:29 66-226-73-146.phx.dedicated.codero.com elasticsearch[22572]: ...
Dec 12 13:16:29 66-226-73-146.phx.dedicated.codero.com systemd[1]: elasticsea...
Dec 12 13:16:29 66-226-73-146.phx.dedicated.codero.com systemd[1]: Unit elast...
Dec 12 13:16:29 66-226-73-146.phx.dedicated.codero.com systemd[1]: elasticsea...
Hint: Some lines were ellipsized, use -l to show in full.

有人可以指导我如何修复这个错误吗?

这是服务器信息

[root@66-226-73-146 elasticsearch]# hostnamectl
   Static hostname: 66-226-73-146.phx.dedicated.codero.com
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 082d95d159ce47ccb4b529d1e5e986bd
           Boot ID: eb3d64e59d834417924b915cb094f30b
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-514.16.1.el7.x86_64
      Architecture: x86-64

Linux 版本 3.10.0-514.16.1.el7.x86_64 ([电子邮件保护])(gcc 版本 4.8.5 20150623(Red Hat 4.8.5-11)(GCC))#1 SMP 2017 年 4 月 12 日星期三 15:04:24 UTC`

答案1

看起来您没有安装 Java?

Elasticsearch 假设您已安装 Java。如果您确保该java命令在您的系统上运行正常,则很有可能使其正常运行。

答案2

相关内容