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