一、安装elasticsearch-analysis-ik插件https://github.com/medcl/elasticsearch-analysis-ik/releases 插件github地址，选择与ElasticSearch版本相同的版本。二、使用elasticsearch-plugin安装插件/usr/share/elasticsearch/bin/elasticsearch-plugin -v install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.17.7/elasticsearch-analysis-ik-7.17.7.zip #在每个节点都执行安装 #安装完成后重启服务。直接下载并安装，输出如下：-> Installing https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.17.7/elasticsearch-analysis-ik-7.17.7.zip -> Downloading https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.17.7/elasticsearch-analysis-ik-7.17.7.zip [=================================================] 100% @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: plugin requires additional permissions @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * java.net.SocketPermission * connect,resolve See https://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html for descriptions of what these permissions allow and the associated risks. Continue with installation? [y/N]y -> Installed analysis-ik -> Please restart Elasticsearch to activate any plugins installed三、离线安装插件如果网络不好，无法通过网络安装，则下载zip包，手动安装/usr/share/elasticsearch/bin/elasticsearch-plugin install file:///path/to/plugin.zip
使用jar命令，将jar解压缩jar -xvf 123.jar进行文件替换后，将当前目录中的文件打包为jar包。jar -cfM0 123.jar ./找不到jar命令，可能是因为没有添加到环境变量。例子：win10中的jar命令位于：C:\Program Files\Java\jdk-1.8\bin\jar.exe