Use docker under centos7 environment and installation kibana ik word breakers (both version 6.7.0)

One, kibana

1. Pull mirror

pull kibana Docker: 6.7.0
Docker ImagesRF Royalty Free view mirror // id

2. Start container

docker run --name mykibana -e ELASTICSEARCH_URL=http://Your Elasticsearch where ip: 9200 -p 5601: 5601 -d kibana: 6.7.0
Docker PS // see if a successful start

Here Insert Picture Description
access:

Current kibana where ip: 5601

The page appears:

Kibana server is not ready yet

DESCRIPTION fails to be allocated, followed by a third step

note:

At this time, we must ensure that you are able to access the elasticsearch! ! !

At this time, we must ensure that you are able to access the elasticsearch! ! !

At this time, we must ensure that you are able to access the elasticsearch! ! !

3. Modify the configuration file

docker exec -it mykibana /bin/bash
cd config/
vi kibana.yml

The elasticsearch to modify elasticsearch.hostsip where you elasticsearch

Here Insert Picture Description
Here Insert Picture Description
Then save and exit, exit the container, the container restart

exit
docker restart mykibana

Revisit kibana (ip: 5601)

Here Insert Picture Description
Here Insert Picture Description
UI interface appears as shown to the installation is successful

Kibana a pit on the installation of:

Best not to elasticsearch and kibana installed on the same server, especially student Ali cloud server, because the memory is not enough servers, both running will spend a lot of memory, the memory is not likely to cause the two can not start at the same time, I would encountered this problem, I spent a lot of time to view errors

Second, install IK tokenizer

Installation IK word is very simple. First check elasticsearch sure you have enabled the container, and then directly into the interior of the container through the command to download.
Here Insert Picture Description

docker ps
docker exec -it ES_02
elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.7.0/elasticsearch-analysis-ik-6.7.0.zip

Here Insert Picture Description
After the download is complete restart of the container that is successfully installed

exit
docker restart ES_02

Released seven original articles · won praise 0 · Views 1311

Guess you like

Origin blog.csdn.net/weixin_42979871/article/details/104253293