Basic management of rabbitmq (II)

Source: Internet
Author: User

To be able to log on to rabbitmq, you must create a rabbitmq user account.

# rabbitmqctl add_user elite elite123Creating user "elite" ......done.# sudo rabbitmqctl set_user_tags elite  administratorSetting tags for user "elite" to [administrator] ......done.

Modify the login password of the default Guest Account:

# sudo rabbitmqctl change_password guest guest123Changing password for user "guest" ......done.


After logging on to rabbitmq, the following rabbitmq console is displayed.

1.1.1 exchange type

To display the exchange types supported by the server, run the following command:

# sudo rabbitmqctllist_exchangesListing exchanges ...       directamq.direct      directamq.fanout      fanoutamq.headers     headersamq.match       headersamq.rabbitmq.log        topicamq.rabbitmq.trace      topicamq.topic       topic...done.


 

1.1.2 Development

Before developing rabbitmq, it is necessary to create an account and virtual host.

# sudo rabbitmqctl add_userrabbitmq-dev rabbitmq123Creating user "rabbitmq-dev" ......done.# sudo rabbitmqctl add_vhostrabbit-dev-vhostCreating vhost "rabbit-dev-vhost" ......done.vhost rabbit-dev-vhost


Set the access permissions of the account. Elite and rabbitmq-Dev are set respectively.

# rabbitmqctl set_permissions -p rabbit-dev-vhost elite".*" ".*" ".*"Setting permissions for user "elite" in vhost"rabbit-dev-vhost" ......done.# rabbitmqctl set_permissions -p rabbit-dev-vhost rabbitmq-dev  ".*" ".*" ".*"Setting permissions for user "rabbitmq-dev" in vhost"rabbit-dev-vhost" ......done.


To configure remote access, you need to create the rabbitmq. config file and configure the user elite and Port

5672. For more information about server configuration, see my previous blog.

Basic management of rabbitmq (II)

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.