下载地址
https://github.com/AlanYoun/elasticsearch6-http-basic/releases/download/v1.0.0/http-basic.zip
以下步骤需在es集群每台上操作
一、创建目录
#切换为es用户 su - es #到es的插件目录 cd /data/es/elasticsearch-6.7.1/plugins mkdir http-basic
二、解压文件
unzip –d /data/es/elasticsearch-6.7.1/plugins/ http-basic http-basic.zip
三、修改插件配置文件
vim plugin-descriptor.properties
修改elasticsearch版本为6.7.1
四、修改es配置文件
vim elasticsearch.yml 添加以下内容 http.basic.enabled: true http.basic.log: true http.basic.username: "es" http.basic.password: "password" #可免验证的ip白名单 http.basic.ipwhitelist: 192.168.0.101,192.168.0.102,192.168.0.103