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

Deployment method of Elasticsearch Test Environment

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article focuses on "Elasticsearch test environment deployment method", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the deployment method of Elasticsearch test environment.

This article is only used for personal records, processes, precautions, etc., far from reaching the production environment.

1. Environment: Linux CentOS 4GB

two。 Download & install & start: https://www.elastic.co/cn/downloads/elasticsearch

Wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.3.0-linux-x86_64.tar.gztar-zxvf elasticsearch-7.3.0-linux-x86_64.tar.gzadduser eschown-R es elasticsearch-7.3.0-linux-x86_64su escd elasticsearch-7.3.0-linux-x86_64/bin./elasticsearch

3. Test:

Curl http://127.0.0.1:9200

4. Enable X-pack to support Elasticsearch security: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html

# Edit config/elasticsearch.yml and insert the following content: xpack.security.enabled: true

5. Secure Elasticsearch in the form of a password: https://www.elastic.co/guide/en/elastic-stack-overview/7.3/built-in-users.html#set-built-in-user-passwords

Bin/elasticsearch-setup-passwords interactive

The above command will be able to configure passwords for the following users:

Apm_systemkibanalogstash_systembeats_systemremote_monitoring_userelastic

6. Enable Elasticsearch remote access: by default, only local Elasticsearch can be accessed. Edit: config/elasticsearch.yml

# remove the comments from the following two lines and change them to the following: network.host: 0.0.0.0http.port: 9200

7. Try to start: an error message is found, plus the following configuration

Discovery.type: single-nodexpack.security.transport.ssl.enabled: true

8. The above operations can only be 'authorized' security. If you want to ensure data security, you should enable SSL. Find the official website for specific tutorials. The above is the deployment of a single-node Elasticsearch service.

At this point, I believe you have a deeper understanding of the "deployment method of Elasticsearch test environment". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Internet Technology

Wechat

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

12
Report