docker pull elasticsearch:7.12.1 docker pull kibana:7.12.1
-
docker run -d \ --name es \ -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \ -e "discovery.type=single-node" \ -v es-data:/usr/local/elasticsearch7.12.1/data \ -v es-plugins:/usr/local/elasticsearch7.12.1/plugins \ -v es-logs:/usr/local/elasticsearch7.12.1/logs \ --privileged \ --network es-net \ -p 9200:9200 \ -p 9300:9300 \ elasticsearch:7.12.1
-
docker run -d \ --name kibana \ -e ELASTICSEARCH_HOSTS=http://es:9200 \ --network=es-net \ -p 5601:5601 \ kibana:7.12.1
-
安装IK分词器
-
进入容器内部
docker exec -it es bash
-
进入bin目录
cd /usr/share/elasticsearch/bin
-
在线下载并安装
./elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.1/elasticsearch-analysis-ik-7.12.1.zip
-
退出
exit
-
重启容器
docker restart es
-
转自:https://blog.csdn.net/djdjfjf1/article/details/134775443
标签:7.12,--,Kibana,IK,elasticsearch,ES,docker,es,usr From: https://www.cnblogs.com/dragon-proud-sky/p/18429491