1. elasticsearch-7.14.0-linux-x86 64. 2. elasticsearch-head- 3. jdk-11 linux-x64 4. kibana-7.14.0-linux-x86 64. 5. node-v14.18.
elasticsearch 7.14.0
Download: /cn/downloads/past-releases/elasticsearch-7-14-0
elasticsearch-head plugin
Download: /mobz/elasticsearch-head/
Kibana 7.14.0 Plugin
Download: /cn/downloads/past-releases/kibana-7-14-0
node 14.18.2
Download: /?path=node/v14.18.2/
Download the corresponding installation package according to the system environment, this system environment for CentOS Linux release 7.9.2009 (Core)
2. Install JDK11
2.1 Extract the installation package to the specified directory
tar -xzvf jdk-11_linux-x64_bin. -C /usr/local/java
2.2 Configuring Environment Variables
vi /etc/profile Add the following: export JAVA_HOME=/usr/local/java/jdk-11 export ES_JAVA_HOME=$JAVA_HOME export PATH=$JAVA_HOME/bin:$PATH
2.3 Command for variable entry into force
source /etc/profile
2.4 Verifying the jdk
[root@localhost es]# java -version java version "11" 2018-09-25 Java(TM) SE Runtime Environment 18.9 (build 11+28) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
3. Install ES 7.14.0.
3.1 Extract the ES installation package to the specified directory
tar -xzvf elasticsearch-7.14.0-linux-x86_64. -C /usr/local/elastic/
3.2 Create ES users and authorize folder permissions
ES does not allow you to run as root, so you need to create a dedicated user first, creating an elastic user specifically for starting ES-related content
Create a user useradd elastic Set password passwd elastic Authorize the elastic user to specify a folder chown-R elastic:elastic /usr/local/elastic/elasticsearch-7.14.0/ To see if the authorization was successful getfacl/usr/local/elastic/elasticsearch-7.14.0/
3.3 Modifying the ES Default Configuration File
This configuration file is a stand-alone ES not a cluster ES, refer to other configurations for cluster ES configuration.
Edit vim/usr/local/elastic/elasticsearch-7.14.0/config/ #Name : my-application #node name : node-1 #IP : 0.0.0.0 #Port number :9200 #master_node_name cluster.initial_master_nodes: ["node-1"] # Allow cross-domain access :true -origin: "*"
Depending on the configuration of the machine to determine whether you need to modify the jvm If the configuration of the memory is large enough 4G or more, you can not modify the configuration of this
Edit jvm heap size vim/usr/local/elastic/elasticsearch-7.14.0/config/ The following description was found ## The heap size is automatically configured by Elasticsearch ## based on the available memory in your system and the roles ## each node is configured to fulfill. If specifying heap is ## required, it should be done through a file in , ## and the min and max should be set to the same value. For ## example, to set the heap to4 GB, create a new file in the ## directory containing these lines: ## The bottom is set to1Gadults and children default (setting)4G -Xms1g -Xmx1g
Modify ES Paging Query Quantity Configuration
vim /etc/security/ # Add the following two lines elastic soft nofile65536 elastic hard nofile 131072
3.4 Starting ES
# Switch elastic users su elastic # Go to the specified directory cd/usr/local/elastic/elasticsearch-7.14.0/bin #Start ./elasticsearch -d
3.5 Check for successful startup
View ES logs path /usr/local/elastic/elasticsearch-7.14.0/log
interviews:9200/
Success is indicated by the following result
4. Install node-v14.18.2.
4.1 Unpack node-v14.18. to the specified directory
# Unzip
tar-xzvf node-v14.18. -C /usr/local/node/
4.2 Configure environment variables, validate, and install cnpm
# Setting environment variables vim/etc/profile # Add the following two lines export NODE_HOME=/usr/local/node/node-v14.18.2-linux-x64/ export PATH=$NODE_HOME/bin:$PATH #Verify [root@localhost/]# node -v v14.18.2 # install cnpm npm install-g cnpm --registry=https:// #verify cnpm cnpm or cnpm-v
Success is shown below
5. Install elasticsearch-head
5.1 Decompression
# Unzip to the specified directory
unzip elasticsearch- -d /usr/local/elastic/head/
Here do not put the head plugin into elasticsearch-7.14.0/plugins, I ate this loss led to the ES can not start, the reason is not in-depth to check, it is best to be placed in a separate directory!
5.2 Compilation, startup
#Compile cd/usr/local/elastic/head/elasticsearch-head-master cnpm install #nohup cnpm run start nohup cnpm run start& # View logs tail-f
5.3 Access validation
Access link :9100/
6. Install kibana-7.14.0
6.1 Introduction and role of kibana I collapsed Expandable view
Kibana is an open source data visualization and analytics platform that is primarily used to work with Elasticsearch, a powerful search engine for storing, searching, and analyzing large amounts of data. Here are some of the main features that Kibana can do: 1. Data Visualization: Create a variety of charts such as line charts, bar charts, pie charts, maps, heat maps, and more. More advanced custom visualizations using the Vega language. 2. Dashboards: Combine multiple visual charts into dashboards for monitoring and analyzing key metrics. Dashboards can be saved, shared and refreshed regularly. 3. Discover and Data Analysis: Use the Discover feature to search and browse data in the Elasticsearch index. Filter, aggregate, and sort data. 4. Log Analysis: Analyze log data to help developers understand application and system behavior. Use Canvas to create detailed log analysis reports. 5. Monitor: Monitor the operational status and performance of your Elasticsearch cluster. Set alerts to notify changes in key performance indicators. 6. Machine Learning: Leverage Elastic Stack's machine learning capabilities to identify anomalous patterns, trends, and predictions in your data. 7. Maps: Create map visualizations using geospatial data for location analysis and visualization. 8. Administration: Manages the Elasticsearch indexing schema and defines how to display the data structure of Elasticsearch indexes in Kibana. 9. Custom Applications: Develop custom Kibana applications that extend the functionality of Kibana. 10. Collaboration: Share dashboards and visualizations to collaborate with team members. 11. Security: Configure role-based access control to ensure that only authorized users can access specific data and features. Kibana is typically used in the following scenarios: Application Performance Monitoring (APM) Log aggregation and analysis Server and infrastructure monitoring Security analytics such as detecting anomalous behavior and intrusion patterns Business Intelligence Analytics The power of Kibana lies in its tight integration with Elasticsearch, which makes working with large amounts of data simple and efficient. As Elastic Stack evolves, new features and capabilities are being added to Kibana.
6.2 Extract kibana to the specified directory
tar -xzvf kibana-7.14.0-linux-x86_64. -C /usr/local/elastic/kibana/
6.3 Modifying configuration files
# Go to the specified directory cd/usr/local/elastic/kibana/kibana-7.14.0-linux-x86_64/config/ #Edit configuration file #Port :5601 #IP : "0.0.0.0" #ES Address : ["http://localhost:9200"] # Other configurations can be modified as appropriate
6.4 Starting kibana
kibana does not allow the use of the root user to start running, you need to switch elastic user and assign folder authorization, the same as ES authorization is the same reason
# Switch users su elastic # Enter the specified directory cd/usr/local/elastic/kibana/kibana-7.14.0-linux-x86_64 #Command to start in the background nohup ./bin/kibana & # Or just start the command Exit service will also exit ./bin/kibana # View logs tail-f tail -f
6.5 Validating kibana
Access: :5601/
The following screen appears to indicate success
7. Summary
All installations are complete, summarizing the startup commands for each component
Start ES
su elastic cd /usr/local/elastic/elasticsearch-7.14.0/bin ./elasticsearch -d
Launch Kibana
su elastic cd /usr/local/elastic/kibana/kibana-7.14.0-linux-x86_64 nohup ./bin/kibana &
Start elasticsearch-head
cd /usr/local/elastic/head/elasticsearch-head-master
nohup cnpm run start &