premise
1. Default has been installed docker environment
2.elasticsearch + kibana to be maintained at the same version
First, install elasticsearch
1. docker command to install elasticsearch
sudo docker pull elasticsearch:6.8.1
- Note the version number must be added back
2. Start elasticsearch
sudo docker run -it --name 446946b24cdd -d -p 9200:9200 -p 9300:9300 -p 5601:5601 446946b24cdd
- Note that the above command
446946b24cdd
is to write image ID, that isIMAGE ID
, do not write directly mirrored name
Check whether to activate the Mirror
sudo docker ps
Access elasticsearch (ip + 9200 port)
- As json data appears, on behalf of elasticsearch successful installation and operating normally
Second, the installation kibana
1. docker command to install kibana
sudo docker pull kibana:6.8.1
- Note the version number must be added back
2. Start kibana and associated elasticsearch
sudo docker run -it -d -e ELASTICSEARCH_URL=http://127.0.0.1:9200 --name f324cd2a2163 --network=container:446946b24cdd f324cd2a2163
ELASTICSEARCH_URL
: Elasticsearch address;f324cd2a2163
: Kibana ID mirror;446946b24cdd
: Elasticsearch ID mirroring
3. Access kibana address
http://IP:5601/app/kibana
4. Set kibana to display Chinese
Elasticsearch into the interior of the container
sudo docker exec -it [你的elasticsearch容器id] /bin/bash
Edit and save kibana.yml
vi /usr/share/kibana/config/kibana.yml
- In the last line
i18n.locale: zh-CN
note there is a space behind the colon
Save and exit kibana container
exit
Restart kibana container
sudo docker restart [你的kibana容器id]
Revisit kibana page
https://www.cnblogs.com/wbl001/p/11257336.html
https://www.cnblogs.com/wbl001/p/11257390.html
https://www.cnblogs.com/wzxmt/p/11198398.html
https://blog.csdn.net/qq_38906421/article/details/88644315
https://www.cnblogs.com/hxlasky/p/11721494.html