ElasticSearch 5.6 cannot start on Mac OS

前端 未结 3 1543
栀梦
栀梦 2021-02-09 03:32

I can\'t start ElasticSearch 5.6 server on Mac after installing it with Brew. Get this error:

$ /usr/local/opt/elasticsearch@5.6/bin/elasticsearch
Exception in t         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-09 04:28

    I just had the same issue, and regenerating the keystore fixed the problem for me. Here are the steps I took:

    Backup the existing keystore:

    cd /usr/local/etc/elasticsearch/
    mv elasticsearch.keystore elasticsearch.keystore.old
    

    Generate the new keystore:

    cd /usr/local/Cellar/elasticsearch@5.6/5.6.15/libexec/bin/
    elasticsearch-keystore create
    

提交回复
热议问题