RabbitMQ Learning Series (two): RabbitMQ installation and configuration

1. installation

Rabbit MQ is built on a strong Erlang OTP platform, so you must install before installing Erlang RabbitMQ.

erlang:http://www.erlang.org/download.html

rabbitmq:http://www.rabbitmq.com/download.html

note:

1. Never mind now equipped with the latest 3.6.3, I am in complete install the latest version, queue queue in question, down to 3.6.2 solved.

2. The default installation of Rabbit MQ listening port is: 5672

2. Configuration

1. After installing erlang need to manually set the system variables of ERLANG_HOME.

Input: set ERLANG_HOME = C: \ Program Files \ erl8.0

2. Activate the Rabbit MQ's Management Plugin

Use Rabbit MQ management plug-ins, you can better visual way to view the status Rabbit MQ server instance, you can use the following command to activate the command line.

输入:rabbitmq-plugins.bat enable rabbitmq_management

At the same time, we also use rabbitmqctl console command (located rabbitmq_server-3.6.3 \ sbin>) to create users, passwords, and other binding authority.

3. Create an administrative user

输入:rabbitmqctl.bat add_user zhangweizhong weizhong1988

4. Set Administrator

输入:rabbitmqctl.bat set_user_tags zhangweizhong administrator

5. Setting permissions

输入:rabbitmqctl.bat set_permissions -p / zhangweizhong "." "." ".*"

6. Other commands

. A user query: rabbitmqctl.bat list_users

b. 查询vhosts: rabbitmqctl.bat list_vhosts

c start RabbitMQ service:. net stop RabbitMQ && net start RabbitMQ

These, account number, vhost, permissions, and other basic scope is set finished.

3. Rabbit MQ management background

Use browser to open http: // localhost: 15672 Rabbit Mq access the management console, you can use the account login system just created.
Rabbit MQ management background, you can better visual way to view the status RabbitMQ server instance.

4. Create vhosts

  1. Create vhosts, in the admin page, click on the right Virtual Hosts,

  2. The newly created OrderQueue assigned to the relevant user.

  3. Other create exchange, queue we've created it in the background, not repeat them here.

Guess you like

Origin www.cnblogs.com/Paul-watermelon/p/11228435.html