How to run Elasticsearch 2.1.1 as root user in Linux machine
Based of the following code-snippet looks like you should be able to achieve this by enabling property es.insecure.allow.root
Example :
bin/elasticsearch -Des.insecure.allow.root=true
Open script file:
vi bin/elasticsearch
Add property for allow root:
ES_JAVA_OPTS="-Des.insecure.allow.root=true"
- Save and close.
- You can start by root now.
Good luck.