In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you how to install ElasticSearch startup error in Linux. The content is simple and easy to understand. It is clearly organized. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn "How to install ElasticSearch startup error in Linux".
Today's anomalies are specifically addressed. After you install ElasticSearch, the problem you need to pay attention to when starting is that ElasticSearch cannot be started with root user (this is according to the security policy of elasticsearch, root is not allowed to start). Starting with root user will report the following exceptions:
Refer to the log for complete error details.
So we need to create a new user and user group, this user and user group is dedicated to manage ElasticSearch service. Create new users and user groups as follows:
groupadd -g 700 elasticsearch4--> Create a new user group named elasticsearch4
useradd -u 701 -g 700 elasticsearch4---> Create a new user with the name elasticsearch4
passwd elasticsearch4---> Set user password to elasticsearch4
gpasswd -a elasticsearch4 elasticsearch4--> Add users to user groups, where the first elasticsearch4 represents the user name and the second elasticsearch4 represents the group name. As shown below:
User names and user groups have been created, and users have been added to user groups. Below we will use this dedicated user to manage elasticsearch to start the service, and the result is reported as follows:
This is because there is no permission caused, now let's give permission:
Then start ElasticSearch again, and it starts successfully.
The above is "Linux how to install ElasticSearch startup error" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.