es install and start

es installation (Linux)

1. Official website download

https://www.elastic.co/downloads/elasticsearch

2. After downloading, unzip to Linux directory such as (/ usr / local)

3. Modify the core configuration file elasticearch.yml

Be sure to configure node.name or you will get an error

The corresponding cluster name also needs to be changed. Note that the name is the same as the node name above

In order to access the Internet

4. Add users

es does not allow the root user to start,

useradd esuser

chown -R esuser:esuser /usr/local/elasticsearch-7.4.2

your esuser

whoami

5. Modify Linux file descriptor limits and other information

Add at the end of /etc/security/limits.conf

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

Added by default in /etc/sysctl.conf

sysctl -p refresh

Prevent errors

6. Start es

Access your virtual machine ip + port number 9200, the following is OK

problem

  1. jps command is missing

    There is a problem with Java installation or source is not executed after configuring environment variables

reference

1. The notes of the teacher of the course of the Mu class network architect

2.https://blog.csdn.net/happyzxs/article/details/89156068

Published 33 original articles · praised 37 · 110,000 views

Guess you like

Origin blog.csdn.net/hagle_wang/article/details/105422019