Installation and configuration of RabbitMQ under Ubuntu 16.04

Time:2019-7-16

1. Install Erlang

apt-get install erlang

Installation and configuration of RabbitMQ under Ubuntu 16.04

After installation, enter ERL to view the Erlang version. The following figure shows the successful installation. Then exit the Erlang command line: press Ctrl + C and type A.
Installation and configuration of RabbitMQ under Ubuntu 16.04

2. Install RabbitMQ

apt-get install rabbitmq-server

Installation and configuration of RabbitMQ under Ubuntu 16.04

After installation, check rabbitmq status:rabbitmqctl status
Installation and configuration of RabbitMQ under Ubuntu 16.04

Rabbitmq can be operated with the following commands

Start rabbitmq: service rabbitmq-server start

Stop rabbitmq: service rabbitmq-server stop

Restart rabbitmq: service rabbitmq-server restart

3. Start rabbitmq plug-in

rabbitmq-plugins enable rabbitmq_management

This web console can start rabbitmq

4. Adding Users

Rabbitmqctl add_user username password

Installation and configuration of RabbitMQ under Ubuntu 16.04

5. Give User Administrator Privileges

Rabbitmqctl set_user_tags user name administrator

Installation and configuration of RabbitMQ under Ubuntu 16.04

6. Setting Read and Write Rights for Users

Rabbitmqctl set_permissions-p/username ". *". *"". *"

Installation and configuration of RabbitMQ under Ubuntu 16.04

Next, you can access the web console, just enter ip: 15672, as shown below, and then enter a user name and password to login to the web console.

Recommended Today

Analysis of new data type instances of ES6 learning notes

An example of this paper describes the new data types of ES6 learning notes. To share with you for your reference, as follows: 1. Data deconstruction assignment 1. Deconstruction and assignment of arrays Basic usage: let [key1, key2…] = [value1, Value2…] Let [name, age, sex] = [‘xiaoming ‘, 24,’ male ‘]; console.log(name); console.log(age); console.log(sex); Note […]