"Springboot integration Elasticsearch" Springboot integration Elasticsearch

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.