前言
本文使用使用elasticsearch-6.5.4 如果读者使用软件版本不同,建议去查看具体步骤
ingest-geoip 安装方式1
进入到es的安装目录下执行一下代码
sudo bin/elasticsearch-plugin install ingest-geoip
但是使用上面下载插件会出现一下两种情况:
- 下载速度太慢(20多M的我下载了将近一个小时)
- md5比对错误
这里就不贴图了,因为复现一次太费劲了;如果下载慢你可以忍受的话,能正常安装也就行了,但是最让人蛋疼的是;下载完成之后安装时,提示我MD5比对错误;无法进行安装;
ps :如果没有出现以上两种问题可以直接安装成功使用
安装方式2 本地安装
- 将需要安装的插件下载下来以本文为例 ingest-geoip-6.5.4 ingest-geoip-6.5.4 .zip. 将安装包下载下来;
- 然后到es的安装目录下
unix下:使用
Windows下使用sudo bin/elasticsearch-plugin install file:///path/to/plugin.zip
将file:后面的替换到下载后的安装包的路径就可以了bin\elasticsearch-plugin install file:///C:/path/to/plugin.zip
安装方式3 http方式 安装
http方式
sudo bin/elasticsearch-plugin install http://some.domain/path/to/plugin.zip
https方式
sudo ES_JAVA_OPTS="-Djavax.net.ssl.trustStore=/path/to/trustStore.jks" bin/elasticsearch-plugin install https://host/plugin.zip
https方式需要使用java加载https证书,第三种方式未亲自测试