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
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