Elasticsearch Not Running on Linux

I am trying to install elasticsearch on Linux Enviroment . After unzip tar file of elasticsearch when i try to run the command of elasticsearch in linux it shows the following below error

java.lang.RuntimeException: cannot run elasticsearch as root
Please help me to run elasticsearch on linux command


Above error showing why you are getting error.

Try to install as non root user. You can use another user with sudo command.


I am new on linux can you share commands for creating new user and run elasticsearch on that


You can use the below command to create new user:

$ adduser username

Good...you can start learning Linux basic once you are comfortable with Linux then you can start new things in Linux.


If youstall it using a package for your linux distribution that is all done for you.

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