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