Original link: https://my.oschina.net/jhao104/blog/644909
Abstract: Elasticsearch is a Lucene-based search server. It provides a distributed multi-user-capable full-text search engine, based on a restful web interface. Elasticsearch is a popular enterprise-class search engine developed in Java and published as an open source under the Apache license terms. Designed for cloud computing, it can achieve real-time search, stable, reliable, fast, easy to install and use.
First, install the Elasticsearch
• Installation Elasticsearch The only requirement is to install the official version of Java, address: http://www.java.com/
Java installation configuration: http://jingyan.baidu.com/article/e75aca85b29c3b142edac6a8.html
· elasticsearch:http://www.elasticsearch.org/download/
• Unzip directly after download, enter the bin under the directory, run Elasticsearch.bat under CMD to start Elasticsearch
• Browser access: Http://localhost:9200/, if a similar result is shown, the installation is successful:
{"Name":"Benedict kine", "cluster_name" : "Elasticsearch", "version" : { "number" : "2.2.0", "Build_hash" : < Span class= "hljs-string" > "8ff36d139e16f8720f2947ef62c8167a888992fe", "Build_timestamp" : "2016-01-27t13:32:39z", "build_snapshot" : false, "lucene_version" : "5.4.1" }, "tagline" : "You Know, for search "}
which
Datastore ——— The name of the Elasticsearch instance, by default it will randomly select one from the list of names, which is set in the Config/elasticsearch.yml file;
version ——— version number that represents a set of information in JSON format, where:
The number field represents the version of the currently running Elasticserch;
The Build_snashot field represents whether the current version is built from source code;
Lucene_version represents the version of Lucene on which Elasticsearch is based;
tagline ——— contains the first tagline of Elasticsearch: "You Know, for Search".
Second, RTF version
Beginners can start with the RTF version of Elastisearch. RTF is the abbreviation for ready to fly, which is an integrated basic plug-in (such as service encapsulation, Chinese word breaker, mapper-attachments, Transport-thrift, Tools.carrot2 and other plug-ins) with a sample program can be directly started with the proposed engineering version.
: Https://github.com/medcl/elasticsearch-rtf
The directory structure will be seen after decompression. Elasticsearch contains the following main folders and functions as follows (in the case of the TF version):
bin--contains some scripts that run Elasticsearch instances and management plug-ins;
config--is mainly a few setup files
lib--contains some relevant package files;
plugins--contains the relevant plug-in files, etc.;
logs--log files;
Where data is stored in the data--elasticsearch;
works--temporary files.
Third, the introduction and installation of plug-ins
Head
Head is a client plug-in to monitor the Elasticsearch state.
Installation: to the bin directory plugin install Mobz/elasticsearch-head
After installation and then input in the browser: http://localhost:9200/_plugin/head/, will open the following interface:
The figure shows a node Benedict Kine, each node having different index data, and the head provides an HTTP client.
Marvel
Marvel is a graphical monitoring client for Elasticsearch, which can be used to view current status.
Installation:
Marvel is available as a plug-in form of elasticsearch and can be installed directly from the plugin:
# ./bin/plugin -i elasticsearch/marvel/latest
If you downloaded the installation package from the official website, run:
# ./bin/plugin -i marvel file:///path/to/marvel-latest.zip
Run:
Enter: http://localhost:9200/_plugin/marvel/in the browser, the following interface will open:
Reference:
Https://www.elastic.co/downloads/marvel
http://es.xiaoleilu.com/
Elasticsearch notes (i)-elasticsearch installation configuration