How to run Elasticsearch 2.1.1 as root user in Linux machine

前端 未结 6 919
北恋
北恋 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:48

    You can also create alias

    alias elasticsearch='elasticsearch -Des.insecure.allow.root=true'

    Add above line in bashrc file, After that elasticsearch command will work.

提交回复
热议问题