1. Download Erlang repository
Wget HTTP: / / http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
Install RPM repository
RPM -uvh erlang-solutions-1.0-1.noarch. RPM # yum install epel-release is needed by Erlang-solutions-1.0-1
Install Erlang
yum -y install erlang
2. Install the rabbitmq
Download the rabbitmq
Wget HTTP: / / http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el6.noarch.rpm
Yum install the rabbitMQ
` yum -y install the rabbitmq server – 3.6.6-1. El6. Noarch. RPM
Note: if the report: the Requires: socat update source: wget – no – cache www.convirture.com/repos/defin… -o/etc/yum. Repos. D/convirt. Repo yum install socat yum install socat `
3. Start the rabbitmq
Run rabbitmq-server-detached in the background
4. Install the plug-in
- The Web management page is displayed
rabbitmq-plugins enable rabbitmq_management
The default login account is guest. The default password is guest. The default user guest can only be accessed locally - Adding an Access User
rabbitmqctl add_user admin admin@1234
- Set role: Remote access is enabled only when the user is set to Administrator
rabbitmqctl set_user_tags admin administrator
- Set the default vhost (“/”) access permission
rabbitmqctl set_permissions -p / admin "." "." ".*"
Browser openhttp://localhost:15672
5. User management
- Add a user
rabbitmqctl add_user Username Password
- Deleting a User
rabbitmqctl delete_user Username
- Example Change the password of a user
rabbitmqctl change_password Username Newpassword
- View the current user list
rabbitmqctl list_users