RABBITMQ Server installation and common commands

Source: Internet
Author: User
Tags rabbitmq

Centos source code Compilation installation Erlang
Which libraries does Erlang depend on?

A fully working GCC compiler environment
ncurses Development Libraries
OpenSSL Development libraries (must be installed if using MySQL)

After installing these libraries, you must re-execute the Configure command, after which you will be prompted to configure which dependent libraries are not installed, and you can discard the installation of some libraries according to your needs, and the above can be done using the following command:


sudo yum-y install make gcc gcc-c++ kernel-devel M4 ncurses-devel Openssl-devel
wget http://www.erlang.org/download/otp_src_17.3.tar.gz
TAR-ZXVF otp_src_17.3.tar.gz
CD otp_src_17.3
./configure--with-ssl
Make
Make install


Centos source code Compilation installation RabbitMQ
Yum install libxslt python zip unzip nc-y
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.4.1/rabbitmq-server-generic-unix-3.4.1.tar.gz
TAR-ZXVF rabbitmq-server-generic-unix-3.4.1.tar.gz
MV Extracted folder/usr/loca/rabbitmq/
Start RABBITMQ Server
/usr/loca/rabbitmq/sbin/rabbitmq-server–detached

Close: Rabbitmqctl stop

Also if you launch a different instance with the same application (eg:rabbitmq_node_port=5673 Rabbitmq_nodename=hare rabbitmq-server-detached),
You need to specify the node name for the management operation: Rabbitmqctl-n Node1



1. Required command

Add Users:

Rabbitmqctl add_user rainbird Password

Add Permissions:

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

To delete a test user:

Rabbitmqctl Delete_user Guest



List of all instructions (very simple in English):

Add_user <UserName> <Password>

Delete_user <UserName>

Change_password <UserName> <NewPassword>

List_users

Add_vhost <VHostPath>

Delete_vhost <VHostPath>

List_vhosts

set_permissions [-P <vhostpath>] <UserName> <Regexp> <Regexp> <Regexp>

clear_permissions [-P <vhostpath>] <UserName>

list_permissions [-P <vhostpath>]

List_user_permissions <UserName>

list_queues [-P <vhostpath>] [<queueinfoitem> ...]

list_exchanges [-P <vhostpath>] [<exchangeinfoitem> ...]

list_bindings [-P <vhostpath>]

List_connections [<connectioninfoitem> ...]

2.vhost/cannot be deleted



Delete/Later, the newly established vhost will not work properly (even if not deleted/, the newly established vhost will not be used properly). I don't know why, but we need to study.




./rabbitmqctl Add_user Admin * * * * *
./rabbitmqctl Add_user Push ******
./rabbitmqctl Set_user_tags Admin Administrator
./rabbitmqctl set_permissions-p/admin '. * '. * '. * '
./rabbitmqctl set_permissions-p/push '. * '. * '. * '
./rabbitmqctl List_permissions




Refer to the blog:
Http://www.kankanews.com/ICkengine/archives/112645.shtml
Specialized in the study of RABBITMQ http://my.oschina.net/hncscwc/blog?catalog=488030

RABBITMQ Server installation and common commands

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.