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

Elasticsearch-5.4.0 configuration and plug-in head management tools

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

1. Configure the JAVA environment, the latest version

. Omit.

Restart reboot if the ordinary user does not take effect

2. Installation

Download the zip file elasticsearch-5.4.0.zip

Unzip elasticsearch-5.4.0.zip

Cd elasticsearch-5.4.0

3. Start

. / bin/elasticsearch-d

-d parameter table operation

4. Test

Curl 'http://localhost:9200/'

The following message indicates that the startup was successful.

{

"name": "MkBlpSX"

"cluster_name": "elasticsearch"

"cluster_uuid": "7OoxnHQgRqmu2p-8VsGlXA"

"version": {

"number": "5.4.0"

"build_hash": "780f8c4"

"build_date": "2017-04-28T17:43:27.229Z"

"build_snapshot": false

"lucene_version": "6.5.0"

}

"tagline": "You Know, for Search"

}

5. Client test

The modification profile is required to display "inaccessible".

Vi config/elasticsearch.yml

6. Restart the service and appear:

Max file descriptors [4096] for elasticsearchprocess likely too low, increase to at least [65536]

Resolve:

Vi / etc/security/limits.conf

Add the following:

* soft nofile 65536

* hard nofile 65536

* soft nproc 2048

* hard nproc 4096

Vi / etc/security/limits.d/20-nproc.conf

Modify the following:

* soft nproc 4096

# modified to

* soft nproc 65536

Vi / etc/sysctl.conf

Add the following configuration:

Vm.max_map_count=655360

And execute the command:

Sysctl-p

Then, start elasticsearch again to start successfully.

Then, local test and client test: compare

Curl 'http://localhost:9200'

Http://192.168.137.7:9200/

7. Install elasticsearch-head

. To be continued.

After several days of testing, there are no response tutorials online, only scattered fragments, the following is a summary of the installation process of my own test:

Http://down.51cto.com/data/2312780

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

Network Security

Wechat

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

12
Report