First, Linux installed ELASTICSEARCH1, detect whether the installation of Elasticsearch
1 ps aux |grep elasticsearch
2, install JDK3, download Elasticsearch
1 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0.tar.gz
Decompression Elasticsearch
TAR-ZXVF elasticsearch-6.0. 0. tar.gz
Move Elasticsearch to/usr/local/elasticsearch
1 MV elasticsearch-6.0. 0 /usr/local/elasticsearch
4. Modify the configuration file
Enter the/usr/local/elasticsearch/config directory, using the VI editor
1 VI elasticsearch.yml
1 192.168. 181.201 2 discovery.zen.ping.unicast.hosts: ["192.168.181.201"]
Modify/etc/sysctl.conf Otherwise it will appear
Max virutal Memory Areas Vm.max_map_count [65530] is too low, increase to at least [262144]
vm.max_map_count=262144
After you exit save, execute the following command:
1 sysctl-p
Using the VI editor, modify the /etc/security/limits.conf
file, add the following code to the end of the file, or it will appear
Max number of threads [3750] for user [XXX] was too low, increase to at least [4096]
1 # SANGLP is the user name of the login server 2 3 65536 4 65536 5 SANGLP soft nproc 40966 sanglp hard nproc 4096
Remember to exit the login again.
5. Start Elasticsearch
Enter the /usr/local/elasticsearch
directory and enter the following command to start the Elasticsearch service:
1 ./bin/elasticsearch
Test:
"Springboot integration Elasticsearch" Springboot integration Elasticsearch