Ubuntu16.04 installation RABBITMQ

Source: Internet
Author: User
Tags stomp server port rabbitmq

1. In order to use the repository, add a key to publish the RABBYMQ version to the APT key:

In order for use of the repository, add a key used to sign RabbitMQ releases to Apt-key

2. Add the source of the corresponding version

" Deb Https://dl.bintray.com/rabbitmq/debian xenial main " | sudo tee/etc/apt/sources.list.d/bintray.rabbitmq.list

3. Update the source list

sudo apt-get update

4. Install the Support library

sudo apt-get install Erlang erlang-nox-y

5. Install the Rabbitmq-server and start the service

sudo apt-get Install Rabbitmq-server-y
/etc/init.d/rabbitmq-server Start #安装完成默认是开启

6. Start the plugin

RABBITMQ can be either command line or RABBITMQ with the Web management interface, only need to start plug-ins can use sudo rabbitmq-plugins enable Rabbitmq_management # Default Port 15672

Access Address: http://127.0.0.1:15672

7.rabbitmq-server Default Port

    4369: EPMD, a peer discovery service used by RabbitMQ nodes and CLI tools5672,5671: Used by AMQP0-9-1and1.0clients without and with TLS25672: Used forInter-node and CLI Tools communication (Erlang distribution server port) and isAllocated fromA dynamic range (limited to a single port bydefault, computed asAMQP Port +20000).  Unless external connections on these ports is really necessary (e.g. the cluster uses federation or CLI tools is used on Machines outside the subnet), these ports should not being publicly exposed. See Networking Guide fordetails. 35672-35682: Used by CLI tools (Erlang distribution client ports) forCommunication with nodes and isAllocated fromA dynamic range (computed asServer distribution Port +10000Through server distribution Port +10010). See Networking Guide fordetails. 15672: HTTP API clients, Management UI and Rabbitmqadmin (onlyifThe Management plugin isenabled)61613,61614: STOMP clients without and with TLS (onlyifThe STOMP plugin isenabled)1883,8883: (MQTT clients without and with TLS,ifThe MQTT plugin isenabled15674: Stomp-over-websockets Clients (onlyifThe Web STOMP plugin isenabled)15675: Mqtt-over-websockets Clients (onlyifThe Web MQTT plugin isEnabled

8. Common commands

sudo chkconfig rabbitmq-Server on #添加开机启动 (Chkconfig generally only redhat systems are available) RABBITMQ Services sudo service RABBITMQ-Server start # Start Services sudo service RABBITMQ-Server Status # View service state sudo services RABBITMQ-Server Stop # Stop service sudo rabbitmqctl stop # Stop service sudo rabbitmqctl status # View service status sudo rabbitmqctl list_users # view current There is a user sudo rabbitmqctl list_user_permissions Guest # to view the default Guest user's permissions sudo rabbitmqctl delete_user guest# Remove the default user ( Because the RABBITMQ default account username and password are guest. For security reasons, you can delete the default user) sudo rabbitmqctl add_user username Password # Add new user sudo rabbitmqctl set_user_tags username Administrator # Set User Tagsudo Rabbitmqctl set_permissions-p/username".*" ".*" ".*"# Give user default Vhost all permissions sudo rabbitmqctl list_user_permissions username # View User's permissions

This article is part of the data from here, some of the information from the official website

Ubuntu16.04 installation RABBITMQ

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.