How to run Elasticsearch 2.1.1 as root user in Linux machine

前端 未结 6 913
北恋
北恋 2020-12-29 23:55

I am trying to run Elasticsearch 2.1.1 in my Linux machine which I am the root user of it.

When I tried to execute the Elasticsearch.I am getting the following error

6条回答
  •  离开以前
    2020-12-30 00:36

    1. Open script file:

      vi bin/elasticsearch

    2. Add property for allow root:

      ES_JAVA_OPTS="-Des.insecure.allow.root=true"

    3. Save and close.
    4. You can start by root now.

    Good luck.

提交回复
热议问题