[System environment]
Operating system: Ubuntu 18.04 LTS (Ali cloud)
System IP
# Network, the private address of 172.18. In the inner # outside the network, the public address Outer 112.74. Outside
Elasticsearch Version: 7.2
Elasticsearch from 7.0 built-in Java environment, without having to install a separate JDK
[] Installation and Configuration
download
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.2.0-linux-x86_64.tar.gz
Decompression
tar -xvf elasticsearch-7.2.0-linux-x86_64.tar.gz
All subsequent operations are carried out elasticsearch-7.2.0 directory
cd ./elasticsearch-7.2.0/
Edit ./config/elasticsearch.yml
# Add or edit node.name: Node. 1- network.host: 0.0.0.0 http.port,: 9200 cluster.initial_master_nodes: [ "Node-. 1"]
Modify the system configuration, edit /etc/sysctl.conf
# Add or modify # sudo sysctl -p to apply the changes vm.max_map_count = 262144
ECS modify security groups, release port 9200
Start elasticsearch
./bin/elasticsearch
Browser to access http:.. //112.74 outside outside: 9200 /, you can see the following
{ "name" : "node-1", "cluster_name" : "elasticsearch", "cluster_uuid" : "npPY-fmfRwqJKLKA30ym3Q", "version" : { "number" : "7.2.0", "build_flavor" : "default", "build_type" : "tar", "build_hash" : "508c38a", "build_date" : "2019-06-20T15:54:18.811730Z", "build_snapshot" : false, "lucene_version" : "8.0.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
[Plug]
See which plug-in is installed
./bin/elasticsearch-plugin list
Install plug-analysis-icu
./bin/elasticsearch-plugin install analysis-icu
Restart elasticsearch, visit http:.. Outside //112.74 outside: 9200 / _cat / plugins, you can see the following
node-1 analysis-icu 7.2.0
*** walker ***