当前位置:网站首页>Es and kibana deployment and setup
Es and kibana deployment and setup
2022-06-13 02:55:00 【Knowing and knowing】
es and kibana Deploy and build
1. Deploy single point es
1.1. Creating networks
If you need to deploy kibana Containers , We let es and kibana Container interconnection . You can create a network first :
docker network create es-net
1.2. Load the image
es Official website :https://www.elastic.co/cn/downloads/past-releases#elasticsearch
You can download the corresponding version by yourself , Here the elasticsearch Of 7.12.1 Image of version .
After downloading successfully, upload it to the virtual machine , Then run the command to load :
# Import data
docker load -i es.tar
In the same way and kibana Of tar package :
kibana download :https://www.elastic.co/cn/downloads/kibana
1.3. function
function docker command , Deploy single point es:
docker run -d \
--name es \
-e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \
-e "discovery.type=single-node" \
-v es-data:/usr/share/elasticsearch/data \
-v es-plugins:/usr/share/elasticsearch/plugins \
--privileged \
--network es-net \
-p 9200:9200 \
-p 9300:9300 \
elasticsearch:7.12.1
Command interpretation :
-e "cluster.name=es-docker-cluster": Set cluster name-e "http.host=0.0.0.0": Listening address , It can be accessed through the Internet-e "ES_JAVA_OPTS=-Xms512m -Xmx512m": Memory size-e "discovery.type=single-node": Non cluster mode-v es-data:/usr/share/elasticsearch/data: Mount logical volumes , binding es Data directory for-v es-logs:/usr/share/elasticsearch/logs: Mount logical volumes , binding es Log directory of-v es-plugins:/usr/share/elasticsearch/plugins: Mount logical volumes , binding es Plug in directory for--privileged: Grant logical volume access--network es-net: Join a group called es-net In the network-p 9200:9200: Port mapping configuration
Enter... In the browser :http://192.168.150.101:9200 You can see elasticsearch Response result of :

2. Deploy kibana
kibana Can provide us with a elasticsearch The visual interface of , It is convenient for us to study .
2.1. Deploy
function docker command , Deploy kibana
docker run -d \
--name kibana \
-e ELASTICSEARCH_HOSTS=http://es:9200 \
--network=es-net \
-p 5601:5601 \
kibana:7.12.1
--network es-net: Join a group called es-net In the network , And elasticsearch In the same network-e ELASTICSEARCH_HOSTS=http://es:9200": Set up elasticsearch The address of , because kibana Already with elasticsearch In a network , Therefore, you can access... Directly with the container name elasticsearch-p 5601:5601: Port mapping configuration
kibana The startup is generally slow , You need to wait a little longer , By command :
docker logs -f kibana
View the run log , When you view the log below , It means success :

here , Enter the address in the browser to access :http://192.168.150.101:5601, You can see the result
2.2.DevTools
kibana One is provided in DevTools Interface :
This interface can be written DSL To operate elasticsearch. And right DSL Statements have automatic completion function .
边栏推荐
- . Net compact Framework2.0 wince intelligent device development project experience sharing Net drag space advanced
- Summary of the latest IOS interview questions in June 2020 (answers)
- Keil removes annoying st link update tips
- Techniques for collecting stringgrid
- IOS development internal volume interview questions
- Beginner development process_ Project development FAQs
- Kotlin memorandum
- Change the topic of change tax
- [data and Analysis Visualization] D3 introductory tutorial 2- building shapes in D3
- Matlab: find the inner angle of n-sided concave polygon
猜你喜欢

JS merge multiple string arrays to maintain the original order and remove duplicates

專業的數據庫管理軟件:Valentina Studio Pro for Mac

【pytorch 記錄】pytorch的變量parameter、buffer。self.register_buffer()、self.register_parameter()

Prometheus安装并注册服务

Detailed explanation of data processing in machine learning (I) -- missing value processing (complete code attached)

Code d'initialisation de l'arbre binaire
![[data analysis and visualization] key points of data drawing 11- precautions for radar chart](/img/46/41e4e0fedb3653b119b0e2af836d85.jpg)
[data analysis and visualization] key points of data drawing 11- precautions for radar chart

Detailed explanation of UCI datasets and their data processing (with 148 datasets and processing codes attached)
![[data analysis and visualization] key points of data mapping 7- over mapping](/img/ae/d4e251b37ec4857c99f738ca981092.jpg)
[data analysis and visualization] key points of data mapping 7- over mapping

How to destroy a fragment- How to destroy Fragment?
随机推荐
Stack: daily temperature
Logiciel professionnel de gestion de base de données: Valentina Studio Pro pour Mac
Summary of the latest IOS interview questions in June 2020 (answers)
Using binary heap to implement priority queue
When the flutter runs the project, the gradle download fails, and the running gradle task 'assemblydebug' is always displayed
FFmpeg原理
二叉樹初始化代碼
. New features in net 6.0 _ What's new in net 6.0
PCR validation of basic biological experiments in [life sciences]
Code d'initialisation de l'arbre binaire
js多种判断写法
Hash table: whether alien languages are sorted
Ffmpeg principle
Pytorch record: pytorch variables parameter and buffer. self. register_ buffer()、self. register_ parameter()
【 enregistrement pytorch】 paramètre et tampon des variables pytorch. Self. Register Buffer (), self. Register Paramètre ()
2019 - sorting out the latest and most comprehensive IOS test questions (including framework and algorithm questions)
[data analysis and visualization] key points of data drawing 4- problems of pie chart
For loop instead of while loop - for loop instead of while loop
Techniques for collecting stringgrid
数仓笔记|针对客户维度建模需要关注的5个因素