无法在Mac Sierra上安装Elasticsearch(10.12.2) [英] Unable to install Elasticsearch on Mac Sierra (10.12.2)

查看:163
本文介绍了无法在Mac Sierra上安装Elasticsearch(10.12.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试通过

$ elasticsearch

我得到输出:

错误:找不到或加载主类-Xms2g

我已经研究了:


  1. 我读过它可能是如何调用一个类的错误?但我没有暴露于这样做。这个线程没有帮助,并不是我的问题,因为我没有安装插件。

  2. 我通过Homebrew安装。这里有一些输出:

  1. I read it may be an error in how a class is called? But I'm not exposed to doing that. This thread doesn't help and isn't really my problem as I'm not installing a plugin.
  2. I installed via Homebrew. Here is some output from that:

$ brew info elasticsearch
elasticsearch: stable 5.1.1, HEAD
Distributed search & analytics engine
https://www.elastic.co/products/elasticsearch
Conflicts with: elasticsearch@1.7, elasticsearch@2.4
/usr/local/Cellar/elasticsearch/5.1.1 (98 files, 35.2M) *
  Built from source on 2016-12-14 at 09:23:56
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/elasticsearch.rb
==> Requirements
Required: java >= 1.8 ✔
==> Caveats
Data:    /usr/local/var/elasticsearch/elasticsearch_GabbAHH/
Logs:    /usr/local/var/log/elasticsearch/elasticsearch_GabbAHH.log
Plugins: /usr/local/Cellar/elasticsearch/5.1.1/libexec/plugins/
Config:  /usr/local/etc/elasticsearch/
plugin script: /usr/local/Cellar/elasticsearch/5.1.1/libexec/bin/plugin

To have launchd start elasticsearch now and restart at login:
  brew services start elasticsearch
Or, if you don't want/need a background service you can just run:
  elasticsearch

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  mongodb
  ruby


  • 我也试过最初通过手动提取.tar.gz包安装。我首先得到一些Java权限被拒绝的错误,但是对于自己运行一个 chown 给管理员后,我也得到了相同的错误:找不到或加载主要类别类型错误

  • I also tried originally installing via manually extracting the .tar.gz package. I at first got some Java permission denied errors, but after running a chown to admin for myself I also got this same Error: Could not find or load main class type error.

    我刚刚将我的Java JDK更新为最新的:1.8.0_112,并将我的JAVA_HOME变量设置为目录相应。

    I just updated my Java JDK to the latest: 1.8.0_112 and set my JAVA_HOME variable to that directory accordingly.

    最新版本的Elasticsearch 2(2.4.3)可以正常工作。同时,Elasticsearch v5.0.2失败。

    The most recent version of Elasticsearch 2 (2.4.3) works. Meanwhile, Elasticsearch v5.0.2 fails.

    我可以如何在Mac上正确安装Elasticsearch? p>

    What can I do to have Elasticsearch properly installed on my Mac?

    推荐答案

    您最有可能在.bash_profile中出现问题。通常弹性开始于Mac上的盒子。

    You most likely have a problem in your .bash_profile. Usually elastic starts out of the box on a mac.

    这篇关于无法在Mac Sierra上安装Elasticsearch(10.12.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆