Can not run elasticsearch as root

Hello

i am working with elasticsearch 5.4

os : centos 7

when i run this command bash -x usr/share/elasticsearch/bin/elasticsearch

then it's give me error and i research that root user is disable to elasticsearch in the 5.4 what should be the solution

You should not run ES as root.

then how i can run that ?

guide me

because of this error i can't add multiple nodes as well

Hello i try with new user and working fine

but after that

curl -XGET http://localhost:9200/_cluster/health?pretty=true

this will give me nothing as output

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