linux install elasticsearch7.4

Download or upload package, address: https: //www.elastic.co/cn/downloads/elasticsearch

Create a user useradd elastic

Password passwd elastic password

Extract the package to a directory under the user's elastic

 

 

 Modify the config of elasticsearch, yml

 

 

 

 

 

 

 

 

 Because es not start with a root, the user switch to start elastic

 

 

Found not start

 报错:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Cut to the root user 

In the last line vi /etc/syctl.conf vm.max_map_count = 262144

 

 

 Then cut the elastic user starts ok

 

 Run curl 'http: // localhost: 9200 / pretty?'

 

 

 

  

Guess you like

Origin www.cnblogs.com/longyao/p/11799564.html