Related Posts:
Search Engine ElasticSearchV5.4.2 Series One of the ES introduction
Search Engine ElasticSearchV5.4.2 series two elasticsearchv5.4.2+klanav5.4.2+x-packv5.4.2 installation
Search Engine ElasticSearchV5.4.2 Series three ES use
Linux & Windows installation ES reference website:
Https://elasticsearch.cn/book/elasticsearch_definitive_guide_2.x/index.html
Https://www.elastic.co/guide/en/elasticsearch/reference/master/_installation.html
1. Introduce Linux installation es steps as follows:
1.1. Install JDK1.8, do not introduce.
Java-version//Check JDK version
echo $JAVA _home//View environment variables
1.2. Download ES
Curl-l-O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.2.tar.gz //Many components are currently supported to 5.4.2. Use 5.4.2, follow the same steps
Or
Curl-l-O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0-alpha2.tar.gz
1.3. Decompression
TAR-XVF elasticsearch-6.0.0-alpha2.tar.gz
1.4. Run ES, my machine on the running process prompts the java.langunsupportedoperationexception. This exception is due to my Linux version is too low to cause, can be ignored.
CD Elasticsearch-6.0.0-alpha2/bin
./elasticsearch
1.5. Detect if es are running successfully,
Open a new terminal
Curl ' Http://localhost:9200/?pretty '
Note: This means that you have now started and run a Elasticsearch node, and you can experiment with it. A single node can act as an instance of a running elasticsearch. A cluster is a group of nodes with the same cluster.name that can work together and share data, and also provide fault tolerance and scalability. (Of course, a single node can also form a cluster) you can modify the Cluster.name in the Elasticsearch-6.0.0-alpha2/config/elasticsearch.yml configuration file, which is loaded at node startup ( Translator Note: This restart service will not take effect. Configuration aspects of reference to the official website content: https://elasticsearch.cn/book/elasticsearch_definitive_guide_2.x/important-configuration-changes.html
=========================== Split Line =================================
2. Introduction of Kibana Installation:
Kibana is a WEB interface that provides data analysis for Elasticsearch. It can be used to efficiently search, visualize, analyze and perform various operations on the log.
2.1 Download kibana-5.4.2*.tar.gz
wget https://artifacts.elastic.co/downloads/kibana/kibana-5.4.2-linux-x86_64.tar.gz
Sha1sum kibana-5.4.2-linux-x86_64.tar.gz
Tar-xzf kibana-5.4.2-linux-x86_64.tar.gz
2.2 Modify KIBANA.YML, connect Elasticsearch.url
2.3. Start Kibana
./bin/kibana
2.4 Browser access: Localhost:5601/app/kibana
Note: Https://www.elastic.co/downloads/kibana can get the download link at this address, be sure to choose for the system and version. In general, Kibana versions must be consistent with the version installed by Elasticsearch, as required by the documentation. Before the ES and Kibana with the need to use plugin to install some marvel,sense and so on, now do not need, devtools is before the sense, useful.
=========================== Split Line =================================
X-pack is an expansion pack for Elasticsearch, which is officially recommended for bundling security, warning, monitoring, graphics, and reporting functionality into an easy to install package.
3. In the ES installs x-pack,es to deactivate the state to execute
Under the ES directory
./bin/elasticsearch-plugin Install X-pack
You can see the additional permissions required for a plug-in during installation: Re-request:
Confirm that you want to grant X-pack additional permissions. X-pack requires these permissions to set the threat context loader during the installation process so that watcher can send e-mail notifications. The above is successfully installed in the ES5.4 X-pack
4. Install X-pack in Kibana, Kibana inactive state to perform
4.1 Zip packet size is about 120MB, pay attention to your network ... Wait patiently.
Under the Kibana directory
./bin/kibana-plugin Install X-pack
4.2 Boot es, start Kibana
4.3 Verification x-pack
In the browser input: http://localhost:5601/, you can open Kibana, you need to enter a username and password login, the default is elastic and changeme.
Logging on to Kibana will find elastic is the highest level of user, with all permissions and the role of Superuser. Of course here we can also add custom users and assign roles to them, and different roles correspond to different functions.
4.4. Management users, we can not only through the Kibana visual interface to manage users in addition, we can also through the ES reset Password API to manage users. Put _xpack/security/user/elastic/_password {"Password": "ELASTICPW"} put _xpack/security/user/kibana/_password {" Password ": KIBANAPW"} After modifying the Kibana password, you also need to modify the KIBANA.YML configuration file ELASTICSEARCH.PASSWORD:KIBANAPW
End ~
Reprint please indicate the source.
Author: Mengfanzhu
Source: http://www.cnblogs.com/cnmenglang/p/7058292.html