why elasticsearch won't run on Ubuntu 14.04?

前端 未结 9 910
隐瞒了意图╮
隐瞒了意图╮ 2020-12-23 01:54

I\'m trying to determine if the elasticsearch instance is running, but it doesn\'t appear to be:

ubuntu@ubuntu:~$ sudo service elasticsearch status
 * elasti         


        
9条回答
  •  伪装坚强ぢ
    2020-12-23 02:58

    While the accepted answer command worked for me using Elasticsearch 1.7.3, with some changes in Elasticsearch >2.0 running the accepted answer command would produce

    es.default.config is no longer supported. elasticsearch.yml 
    must be placed in the config directory and cannot be renamed
    

    Github Issue

    The command as specified in the above Github issue would now be:

    sudo -u elasticsearch /usr/share/elasticsearch/bin/elasticsearch -d -p /var/run/elasticsearch.pid --path.conf=/etc/elasticsearch --default.path.home=/usr/share/elasticsearch --default.path.logs=/var/log/elasticsearch --default.path.data=/var/lib/elasticsearch --default.path.work=/tmp/elasticsearch --default.path.conf=/etc/elasticsearch
    

提交回复
热议问题