Created
November 14, 2018 04:01
-
-
Save oktavianidewi/fa1b472ed5d8242a122757591f738cf8 to your computer and use it in GitHub Desktop.
Set up new user for rabbitmq with rabbitmqctl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| activate rabbitmqctl command | |
| You can access the user-management with rabbitmqctl and use the command: | |
| `add_user {username} {password}` | |
| or more preferably maybe edit an existing user, or set the permissions for the new user with: | |
| `set_permissions [-p vhostpath] {user} {conf} {write} {read}` | |
| For example use the following commands: (it is important to perform these three steps even when creating a new user, if you want to be able to login to the UI console and for your programs to work without facing any permission issues) | |
| ``` | |
| rabbitmqctl add_user newadmin s0m3p4ssw0rd | |
| rabbitmqctl set_user_tags newadmin administrator | |
| rabbitmqctl set_permissions -p / newadmin ".*" ".*" ".*" | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment