Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Elasticsearch-5.4.0 configuration and plug-in head management tools

Shulou Source: shulou.com Published: 2022-06-01 04:42:11 10月05日 Update

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

Tags: Testing configuration success content customers clients files normal information parameters only commands tutorials latest versions fragments environment users processes requirements services Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL NVidia OPPO Reno Redmi Apple