Download Unzip elasticsearch-2.x.tar.gz
1. Installation Start-up
Installing the Monitoring plugin
./plugin Install Mobz/elasticsearch-head
Modify ES Configuration
elasticsearch2.0.0 version needs to be modified before booting
Configuration in config Elasticsearch.yml file
Network.host 172.24.3.95
This will ensure that the external network can also access the cluster health, or only through localhost access
Another argument is that using 0.0.0.0 has not been validated
Modify the following configuration
discovery.zen.ping.unicast.hosts [Xxx,xxx]
can be cluster-aware, ES document said will automatically sense the cluster, perhaps my configuration reasons, can only manually modify the configuration file for the perception
Start ES
./elasticsearch-d--cluster.name Jiangnan_cluster--node.name jiangnan_node_1
Start-D to run execution for daemon can specify a specific cluster\note name
The same IP segment will perceive the cluster, and can be added according to the cluster name
After cluster boot, the monitoring address is
http://172.24.3.95:9200/_plugin/head/
Verify that the ES cluster boot command is as follows
Curl ' Http://localhost:9200/?pretty '
The basic construction is completed
Related meanings
Elasticsearch is equivalent to a MySQL
Index is equivalent to each database
Type is equivalent to each table
Schema equivalent to Mapping
Document is equivalent to row
field is equivalent to field
Elasticsearch Introduction (Basic building)