RABBITMQ the environment on Ubuntu

Source: Internet
Author: User
Tags rabbitmq

Environment configuration

    • Ubuntu Server 18.04
    • RabbitMQ 3.6.10

Before installation
We use Apt-get for RABBITMQ installation, before installation, it is strongly recommended that you switch apt source to domestic, greatly increase the speed of download and installation, click to view: "Ubuntu Apt-get and pip domestic source replacement"

Installing Rabbitmq-server

    1. sudo apt-get update
    2. sudo apt-get install Rabbitmq-server

Service Common Commands

    • Start Rabbit Services: Service rabbitmq-server start
    • Stop Rabbit Services: Service Rabbitmq-server stop
    • Background boot: rabbitmq-server-detached
    • Operating Status: Rabbitmqctl status

User Management

    • View all users: Rabbitmqctl list_users
    • Add User: Rabbitmqctl add_user username password
    • Delete User: Rabbitmqctl delete_user username
    • Change Password: rabbitmqctl change_password username NewPassword
Open Rabbit Web Console
    1. Go to Rabbit installation directory: CD/USR/LIB/RABBITMQ
    2. To view installed plugins: Rabbitmq-plugins list
    3. Open the web version of the console: Rabbitmq-plugins enable Rabbitmq_management
    4. Restart RABBITMQ Service
    5. Enter Web page access address: http://localhost:15672/Use default account: Guest/guest Login

Preview Map:

Through the Web console, we can manage users, view connections, view channels, manage and view rabbit node information, log information.

Use instance-Add user set Super Permissions
    1. Rabbitmqctl add_user test test
    2. Rabbitmqctl set_user_tags Test Administrator
    3. Rabbitmqctl set_permissions-p/test ". " "." ". *"

RABBITMQ the environment on Ubuntu

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.