Original link: http://jingyan.baidu.com/article/48206aead42b53216bd6b372.html
Elasticsearch is a Lucene-based search server. It provides a distributed multi-user-capable full-text search engine, based on a restful web interface.
Recently work needed, and then studied the next es. By the way, the process of learning is recorded, it is also convenient for a long time to review again, or other environment to configure the reference.
Tools/Materials
- JDK, ES installation package
Installing Elasticsearch
- 1
First look at the effect 194, 1962 machine cluster, install head plugin browse access
2ES relies on Java, so make sure you install the JDK first
elastic.co official website downloads Download the required Elasticsearch package, the historical version can be found under downloads/past-releases, I chose the 1.7.2 package here
TAR-ZXVF elasticsearch-1.7.2.tar.gz
3Execution start
./bin/elasticsearch-d
You can view the boot ES information directly via the browser or terminal.
Curl ' Http://localhost:9200/?pretty '
This time ES has actually been installed successfully
Installing Elasticsearch-servicewrapper
- 1
Elasticsearchservicewrapper is a packaging service that executes commands on Elasticsearch
After the installation, convenient elasticsearch start, stop and so on a series of operations
Find elasticsearch-servicewrapper Download Zip package on GitHub
2
Configuring the JVM's memory
Modify the/bin/service/elasticsearch.conf,set.default.es_heap_size=1024, which can be customized according to the machine's configuration.
3
Install Startup services
./bin/service/elasticsearch Install
Start/stop/Restart service
./bin/service/elasticsearch Restart
Start/stop/restart
Installing the Es-head Plugin
- 1
./bin/plugin-install Mobz/elasticsearch-head
Browser access to head interface for viewing effects
Installing the Bigdesk Plugin
- 1
./bin/plugin-install Lukas-vlcek/bigdesk
Look at the effect, the environment is almost. Back to continue.
Elasticsearch learning one, installation and configuration