First, install Elasticsearch download the package and extract to the specified directory
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0.2.zip
Start Elasticsearch
Note: Default at least 2G of memory, if the computer memory is not enough, edit config/jvm.options in the
-Xms2g -Xmx2g 为 -Xms1g -Xmx1g
Start
/bin/elasticsearch.bat
Open Browser, access for initialization installation
http://localhost:9200/
Second, install Kibana download and unzip the package
Summary: Kibana is a Web management tool for elasticsearch5.0.2 status monitoring, platform management, and testing
Edit File Config/kibana.yml Elasticsearch.url point to Elasticsearch instance, which is set to
server.port: 5601server.host: "localhost"elasticsearch.url: "http://localhost:9200"
Start Kibana
bin/kibana.bat
Open View Kibana, initialize
http://localhost:5601
Third, installation X-pack
1. Install the X-pack plugin for elasticsearch online:
Start Elasticsearch (Skip this step if you have already started)
2. Installing the X-pack plugin for Kibana
Start Kibana (Skip this step if you have already started)
Bin/kibana
Access to http://localhost:9200 and http://localhost:5601/will encounter the HTTP 401 issue and need to use the following account
用户名: elastic密码: changeme
Four. Order Additions
1. Upgrade X-pack Stop Elasticsearch uninstall the old X-pack
Install the new
Start Elasticsearch remove X-pack from Kibana
2. Install the x-pack in the Kibana
Uninstall X-pack stop Elasticsearch Uninstall X-pack
Start Elasticsearch remove X-pack from Kibana
Five. Test the problem
1. Search tests can be performed on the Dev tools panel in Kibana
2. When using test tools such as Fiddler,jmeter, please add the following request header
Authorization: Basic {base64Encode(username:password)}
Here is the user name and password as follows
username:elasticpassword:changeme
We use a complete example of the following
Connection: keep-alivePragma: no-cacheCache-Control: no-cacheUpgrade-Insecure-Requests: 1User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) chrome/51.0.2704.103 Safari/537.36Accept: application/json;q=0.9,image/webp,*/*;q=0.8Accept-Encoding: gzip, deflate, sdchAccept-Language: zh-CN,zh;q=0.8Content-Type: application/x-www-form-urlencoded;charset=utf-8Host: localhost:9200Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==
The access address is as follows, data
POST http://localhost:9200/_search?pretty
{ "query": { "match_all": {} }}
Install and test elasticsearch5.0.2 in Windows