Running elasticsearch as a service on Linux

elasticsearch-2.1.1
OS: Linux

I used putty to remotely install elasticsearch on linux machine as follows:-

  1. Download the Elasticsearch 2.1.1 tar
    curl -L -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.1.1/elasticsearch-2.1.1.tar.gz
  2. Extract it
    tar -xvf elasticsearch-2.1.1.tar.gz
  3. Added cluster.name, node.name, network.host and http.port in elasticsearch.yml
  4. After that I started elasticsearch as:-
    ./elasticsearch

Now, how do I need to run it as a service.??

There are extensive docs on how to install Elasticsearch based on target platform here:

https://www.elastic.co/guide/en/elasticsearch/reference/5.x/setup.html

As you started with the tar.gz you might want to look here for how to run that as a daemon:

https://www.elastic.co/guide/en/elasticsearch/reference/5.x/zip-targz.html

However, I think this is not actually the distribution you want to use. I think, you'd be better off installing the rpm or deb (depending on your Linux distribution) and going from there as that will use the correct system directories, create specific ES users etc. Also you will probably want to go through the bootstrap checks detailed in the same docs.

Hope this helps,
Isabel

Thanks, @mainec for the reply.

I am able to run it as a service.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.