1. Terminology explanation
Cluster: Cluster
Node: Nodes
Index: Database similar to MySQL
Type: Table similar to MySQL
Doccument: Content
Shard: Data fragmentation, Shard maximum default doccument number is 2,147,483,519
Replicas: Number of copies of data, also used when querying, not just backup
2. Installation
(a) Elasticsearch run dependent JRE,JRE installation reference: Ubuntu Install JRE
(b) Download address: https://www.elastic.co/, click on the top right corner downloads
(c) The version I choose is elasticsearch-2.2.0.tar.gz (d) Decompression: TAR-ZXVF elasticsearch-2.2.0.tar.gz (e) decompression can be used, the execution program in the bin directory
(f) Background operation:./elasticsearch-d
3. Check cluster health status Curl ' localhost:9200/_cat/health?v ' status has three kinds: green,yellow,red
4. Check cluster node Curl ' localhost:9200/_cat/nodes?v ' * Callout node is master node
5. Show All index curl ' localhost:9200/_cat/indices?v '
PRI: Shard, default 5
Rep: replicas, default 1
6. Create Delete index
Index:customer
Pretty: Display optimization, line wrapping
Create: Curl-xput ' Localhost:9200/customer?pretty '
Delete: Curl-xdelete ' Localhost:9200/customer?pretty '
7. About Configuration
Es_home/config directory:
Master configuration: Elasticsearch.yml
Log configuration: Logging.yml
Single-point elasticsearch configuration reference:
Cluster.name:bs2test
network.host:0.0.0.0
path.logs:/data/elasticsearch/logs
path.data:/data/ Elasticsearch/data
Summary: A lot of details, the main reader network configuration document
Official website Document: https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
Previous: Elk Logstash Installation and configuration Next: Elk Kibana Installation and configuration
End;