elasticsearch-- search guard安装与配置

英文参考:

Please download the zips here

https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-ssl/https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-2/
or install via

bin/plugin install -b com.floragunn/search-guard-2/2.4.1.11
bin/plugin install -b com.floragunn/search-guard-ssl/2.4.1.20

See http://floragunncom.github.io/search-guard-ssl-docs/installation.html andhttp://floragunncom.github.io/search-guard-docs/installation.html


一、安装search guard插件必须要安装两部分:

①search-guard-xx

②search-guard-ssl

(XX指的是与elasticsearch引擎对应的版本)

github地址:

https://github.com/floragunncom/search-guard

这里以elasticsearch 2.3.3版本为例

进入到elasticsearch安装目录(如果是用RPM包安装的,默认位置是,也可用命令whereis elasticsearch查看安装位置)

cd /usr/share/elasticsearch

安装方法:

(1)search-guard

elasticsearch版本:elasticsearch 2.x

bin/plugin install -b com.floragunn/search-guard-2/

elasticsearch 2.3.3版本:

bin/plugin install -b com.floragunn/search-guard-2/2.3.3.11

elasticsearch版本:elasticsearch 5.x

bin/elasticsearch-plugin install -b com.floragunn:search-guard-5:

(2)search-guard-ssl

elasticsearch 2.x

bin/plugin install -b com.floragunn/search-guard-ssl/

elasticsearch 2.3.3版本:

bin/plugin install -b com.floragunn/search-guard-ssl/2.3.3.11

elasticsearch 5.x

bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:

注意事项:

当es的版本大于2.2时,安装过程中可能会有如下提示:

这个是正常现象,只要看到有以下提示就表示安装成功:

Installed search-guard-ssl into /usr/share/elasticsearch/plugins/search-guard-ssl

Installed search-guard-2 into /usr/share/elasticsearch/plugins/search-guard-2

你可能感兴趣的:(elasticsearch)