1. Install Erlang First, install tutorial please see one.
2. To https://github.com/rabbitmq/rabbitmq-server/releases download the latest version, I downloaded is wget https://github.com/rabbitmq/ RABBITMQ-SERVER/RELEASES/DOWNLOAD/V3.7.4/RABBITMQ-SERVER-3.7.4.TAR.XZ, and then unpack.
3. Configure Environment variables
Export Path=/usr/software/bag/rabbitmq_server-3.7.4/sbin: $PATH
4. Common commands
Enable Web Admin interface: Rabbitmq-plugins Enable Rabbitmq_management
Start: rabbitmq-server-detached
OFF: Rabbitmqctl stop
Add User: Rabbitmqctl add_user admin 222333
Set permissions: Rabbitmqctl set_user_tags admin Administrator
Add a user
Rabbitmqctl add_user Username Password
Delete a user
rabbitmqctl delete_user Username
Modify the user's password
rabbitmqctl change_password Username newpassword
View the current user list
rabbitmqctl list_users
Add a role to the user
Rabbitmqctl set_user_tags username rolename
User role
(1) Super Admin (Administrator)
You can log in to the admin console (with management plugin enabled) to view all the information and to manipulate the user, policy (policy).
(2) monitor (monitoring) &NBSP
can log in to the admin console (management plugin enabled), and view information about the RABBITMQ node (number of processes, memory usage, disk usage, and so on)
(3) The policy-makers (policymaker)
can be logged into the management console (management plugin enabled) while the policy can be managed. However, you cannot view information about the node (the part of the red box above). In contrast to the administrator, the administrator can see these contents
(4) General Manager (Management)
can only log on to the management console (management plugin enabled). The node information cannot be seen and the policy cannot be managed.
(5) other
cannot log on to the management console, which is usually the average producer and consumer.
5. Access to 192.168.1.1:15672 (different IP address) can open the admin page