Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the exception of running Elasticsearch in root under centos

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to solve the Elasticsearch exception in the operation of root under centos". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the abnormal Elasticsearch in root under centos".

Run Elasticsearch 2.3 on CentOS 6.5.The exception is as follows:

Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root. At org.elasticsearch.bootstrap.Bootstrap.initializeNatives (Bootstrap.java:93) at org.elasticsearch.bootstrap.Bootstrap.setup (Bootstrap.java:144) at org.elasticsearch.bootstrap.Bootstrap.init (Bootstrap.java:270) at org.elasticsearch.bootstrap.Elasticsearch.main (Elasticsearch.java:35) Refer to the log for complete error details.

The exception is described as not being able to run Elasticsearch. Exe with root privileges. The workaround is to add parameters at run time:

Bin/elasticsearch-Des.insecure.allow.root=true

Or modify the bin/elasticsearch and add the ES_JAVA_OPTS attribute:

ES_JAVA_OPTS= "- Des.insecure.allow.root=true"

Restart Elasticsearch after saving.

Thank you for your reading, the above is the content of "how to solve the Elasticsearch exception in the operation of root under centos". After the study of this article, I believe you have a deeper understanding of how to solve the abnormal operation of Elasticsearch in root under centos, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report