Docker Install ES & Kibana & IK Words Aini

2023-01-22   ES  

docker search elasticsearch

docker pull docker.io/elasticsearch:7.2.0

docker run --name es -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -d elasticsearch:7.2.0

The container has been started and you can enter the IP + port number in the browser.
在这里插入图片描述

docker run -it -d -e ELASTICSEARCH_URL=http://192.168.1.105:9200 --name kibana -p 5601:5601 kibana:7.2.0

Visit http: // ip: 5601
在这里插入图片描述
If the display is not connected, the ES needs to be configured as follows:

Enter Kibana container

docker exec -it <container name> /bin/bash
cd config
vi kibana.yml
#
# ** THIS IS AN AUTO-GENERATED FILE **
#
# Default Kibana configuration for docker target
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://elasticsearch:9200" ]
xpack.monitoring.ui.container.elasticsearch.enabled: true

only need to replace the above ELASTICSEARCH in the above “http: // elasticsearch: 9200” to the internal IP of the ES container in the previous step.

After

, exit the container, restart the docker restart Kibana container ID

Open the port number corresponding to the firewall

firewall-cmd --add-port=9200/tcp --permanent
firewall-cmd --add-port=5601/tcp --permanent

Here is a reference

Visit the GitHub website, enter IK in the search bar, and find the consistent .zip compressed package with the same version number

Enter ES container

docker exec -it <container name> /bin/bash
cd /bin

./elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.2.0/elasticsearch-analysis-ik-7.2.0.zip

Restart ES container

docker restart <container name>

source

Random Posts

IIS + Tomcat share port 80

Python uses regular expressions to process HTML comments and labels

vue-filter

Zheng Qing oj1069neweva

HDU2014 Young Singer Grand Prix Jury to score IT