cd /haoke/es-cluster/ik
#将IK的zip压缩包解压到该目录
#停止、删除现有容器
docker stop es-node01 es-node02 es-node03
docker rm es-node01 es-node02 es-node03
#重新创建容器,注意ik目录的挂载
docker create --name es-node01 --net host -v /haoke/es-cluster/node01/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /haoke/es-cluster/node01/jvm.options:/usr/share/elasticsearch/config/jvm.options -v /haoke/es-cluster/ik:/usr/share/elasticsearch/plugins/ik -v /haoke/es-cluster/node01/data:/usr/share/elasticsearch/data elasticsearch:6.5.4
docker create --name es-node02 --net host -v /haoke/es-cluster/node02/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /haoke/es-cluster/node02/jvm.options:/usr/share/elasticsearch/config/jvm.options -v /haoke/es-cluster/ik:/usr/share/elasticsearch/plugins/ik -v /haoke/es-cluster/node02/data:/usr/share/elasticsearch/data elasticsearch:6.5.4
docker create --name es-node03 --net host -v /haoke/es-cluster/node03/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /haoke/es-cluster/node03/jvm.options:/usr/share/elasticsearch/config/jvm.options -v /haoke/es-cluster/ik:/usr/share/elasticsearch/plugins/ik -v /haoke/es-cluster/node03/data:/usr/share/elasticsearch/data elasticsearch:6.5.4
版权归属:
Fly
本文链接:
https://superxiang.com/archives/%E9%9B%86%E7%BE%A4%E6%B7%BB%E5%8A%A0ik%E5%88%86%E8%AF%8D%E5%99%A8md
许可协议:
本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权
评论区