elasticsearch shield (5.0 or lower certification authority)

5.0 version of the following words elasticsearch to use access control requires the use of shield. Download: https://www.elastic.co/downloads/shield
above the 5.0 version you can use the X-Pack, shield only part of the x-pack right now. x-pack contains Shield, Watcher, Marvel, Graph, reporting. Download: https: //www.elastic.co/downloads/x-pack

elasticsearch shield to install and configure
elasticsearch version needs to be consistent and shield
installation
1. Online.
Elasticsearch into the bin directory, the Executive
plugin install License
plugin install Shield
2. offline, download a good version of the corresponding Shield
https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.0/ license-2.4.0.zip
https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/shield/2.4.0/shield-2.4.0.zip
downloaded file into the directory not under elasticplugin
execute the command:
plugin install File: ///path/to/file/license-2.4.0.zip
plugin install File: ///path/to/file/shield-2.4.0.zip
path must be an absolute path, for example, plugin install file: /// e: \ soft \ elasticsearch \ license-2.4.0.zip
restart es have completed the certification authority.

Add User
After installing two plug-ins above, it will be more a shield directory under the bin directory.
cd into the directory shield. Execution esusers useradd [username] -r admin ( username: user name, -r admin is designated role as admin)
and follow the prompts for a password
to view the user
esusers list (list of all users and roles)
Change Password
esusers passwd gavin (modifying user gavin password)
to delete the user
esusers userdel gavin (delete user gavin)
to add user roles
esusers roles gavin -a admin (xiangyang added to the user admin roles)
command help
esusers -h

 

Guess you like

Origin www.cnblogs.com/gavinYang/p/11199699.html