首页 > 代码库 > 给Elasticsearch 5.2.2 设置用户权限 how to setting security for elasticsearch on windows
给Elasticsearch 5.2.2 设置用户权限 how to setting security for elasticsearch on windows
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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。