首页 > Windows开发 > 详细

给Elasticsearch 5.2.2 设置用户权限 how to setting security for elasticsearch on windows

时间:2017-03-13 18:33:34      阅读:1274      评论:0      收藏:0      [点我收藏+]

1. download the plugin of elasticsearch: 

下载 readonlyrest-1.14.0_es5.2.2.zip

 

2. install readonlyrest plugin: 

C:\Users\Administrator\Downloads\elasticsearch-5.2.2\bin\elasticsearch-plugin.bat install file:///d:/readonlyrest-1.14.0_es5.2.2.zip

 

3. open elasticsearch.yml add blow code:

readonlyrest:
    enable: true
    response_if_req_forbidden: Sorry, your request is forbidden.
    access_control_rules:
    - name: Full access with HTTP auth
      auth_key: admin:123456  #user: admin, password:123456
      type: allow

 

4. restart elasticsearch service.

5. done;

给Elasticsearch 5.2.2 设置用户权限 how to setting security for elasticsearch on windows

原文:http://www.cnblogs.com/haoliansheng/p/6544124.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!