码迷,mamicode.com
首页 > Windows程序 > 详细

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

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

标签:ken   ice   install   auth   service   nbsp   ado   mini   password   

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

标签:ken   ice   install   auth   service   nbsp   ado   mini   password   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!