. NET RabbitMQ practices [configuration]

Source: Internet
Author: User

RabbitMQ official website address is http://www.rabbitmq.com

Configuration in the window environment:
Download the erlang Runtime Environment (Windows binary): http://erlang.org/download.html. Select the program version to install,

I chose R14B04 Windows Binary File. After downloading the File, I installed it in the C: \ Program Files \ erl5.8.5 directory.

Set the ERLANG environment variable ERLANG_HOME, as shown in figure

Download the RabbitMQ Server (the latest version is2.7.0), Link: http://www.rabbitmq.com/download.html

Download and install Windows: With installer (recommended ).

After the installation is successful, find the RabbitMQ Service-start under the RabbitMQ Server in the program in the start menu to start the RabbitMQ Server Service.

Restart the machine to complete the RabbitMQ environment configuration on the single machine.

 

The following uses the rabbitmqctl Console Command (located at D: \ rabbitmq \ sbin>) to configure the vhost, create a user, password, and bind permissions. First, create vhosts. The command is as follows:
Add and create a VM:

D: \ rabbitmq \ sbin> rabbitmqctl add_vhost dnt_mq // Note: delete the virtual host rabbitmqctl delete_vhost vhostpath

All VM information can be displayed as specified below:

D: \ rabbitmq \ sbin> rabbitmqctl list_vhosts
Listing vhosts...
/(Root directory)
Dnt_mq

Add the user name and password (daizhj, password: 617595) as follows ):

D: \ rabbitmq \ sbin> rabbitmqctl add_user daizhj 617595 // Note: Modify the User Password: rabbitmqctl change_password username newpassword

Bind User Permissions:

D: \ rabbitmq \ sbin> rabbitmqctl set_permissions-p dnt_mq daizhj ".*"".*"".*"
Setting permissions for user "daizhj" in vhost "dnt_mq "...

List User Permissions:

D: \ rabbitmq \ sbin> rabbitmqctl list_user_permissions daizhj // Note: Clear the user permission rabbitmqctl clear_permissions [-p vhostpath] username
Listing permissions for user "daizhj "...
Dnt_mq. * client

Now, the rabbitmq environment configuration on a single machine is complete. In the next article, we will introduce how to use its. net client for simple development.

This article references: http://www.cnblogs.com/daizhj/archive/2010/10/21/1857374.html

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.