Install elasticsearch error in centos

hi there, last time i install elasticsearch in windows, everything work perfectly fine now
after some development on my application modules, now i decided to move to my server.

which in running on centos.

i have problems when installing it.

after downloading elasticsearch package.

i run this command :


and then i got this error msg :

> Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.
>         at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(
>         at org.elasticsearch.bootstrap.Bootstrap.setup(
>         at org.elasticsearch.bootstrap.Bootstrap.init(
>         at org.elasticsearch.bootstrap.Elasticsearch.main(

this my environment specification :


java version "1.7.0_101"

elastic version 2.3.4

i dont know what to do to fix this one.

please help me.

thanks in advance.

don't run elasticsearch as root

Don't run Elasticsearch as the root user. Run it as some other user, e.g. yourself.

how to make elasticsearch don't run as root ?