elasticsearch6.3.2 http-basic身份验证插件安装

下载地址
https://github.com/AlanYoun/elasticsearch6-http-basic/releases/download/v1.0.0/http-basic.zip

以下步骤需在es集群每台上操作
1、解压文件

将下载的zip包上传到 /opt/elk/elasticsearch-6.3.2/plugins 目录
unzip http-basic.zip

2、修改插件配置文件

vim plugin-descriptor.properties
修改elasticsearch版本为6.3.2

3、修改es配置文件
cd /opt/elk/elasticsearch-6.3.2/config
vim elasticsearch.yml

添加以下内容
http.basic.enabled: true
http.basic.log: false
http.basic.username: “elk”
http.basic.password: “elk123!”
#ip白名单
http.basic.ipwhitelist: 192.168.181.101,192.168.181.102,192.168.181.103

4、重新启动如果报以下错误
Caused by: java.lang.IllegalArgumentException: Cannot have more than one plugin implementing a REST wrapper。
是因为x-pack-security插件和http-basic冲突,
在elasticsearch.yml中将xpack security禁用,
xpack.security.enabled : false

备注:直接使用http-baisc-1.5.jar包这种方式不可以,会报缺少plugin-descriptor.properties文件错误

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值