Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Ubuntu 16.04 RabbitMq installation and running tutorial

Shulou Source: shulou.com Published: 2022-06-02 10:00:30 09月12日 Update

This article introduces the relevant knowledge of "Ubuntu 16.04 RabbitMq installation and Operation tutorial". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Preparatory work

One server: Ubuntu Server 16.04.1 LTS 64 bit

Install RabbitMq

You can refer to the installation tutorial (Installing on Debian and Ubuntu) on RabbitMq's official website for installation.

Here we use apt-get to install, just a few simple commands:

1. Since rabbitMq requires the support of erlang language, you need to install erlang before installing rabbitMq, and execute the command:

Apt-get install erlang-nox # install erlang

Erl # check the relang language version. Successful execution means that relang is installed successfully.

two。 Add a public key

Wget-O-https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add-

3. Update software package

Apt-get update

4. Install RabbitMQ

Apt-get install rabbitmq-server # installation starts automatically successfully

5. View RabbitMq status

Systemctl status rabbitmq-server # Active: active (running) description is running

# service rabbitmq-server status can also be viewed with the service instruction, as with the systemctl instruction

6. Start, stop, restart

Service rabbitmq-server start # Startup

Service rabbitmq-server stop # stop

Service rabbitmq-server restart # restart

After performing the above steps, rabbitMq has been installed successfully.

7. To enable the visual interface on the web side, we also need to configure the Management Plugin plug-in

Rabbitmq-plugins enable rabbitmq_management # enable plug-ins

Service rabbitmq-server restart # restart

At this point, you should be able to view it through http://localhost:15672 and log in using the default account guest/guest.

Note: for RabbitMQ 3.3and later versions, guest can only be logged in locally to the service.

Glancing at the official document, it says that guest users will be created by default, but can only be logged in locally on the server. It is recommended to create other new users and authorize them to do other operations.

8. View users

Rabbitmqctl list_users

9. Add administrative user

Rabbitmqctl add_user admin yourpassword # increases the number of ordinary users

Rabbitmqctl set_user_tags admin administrator # assigns the administrator role to ordinary users

Ok, you can access your rabbitmq monitoring page by typing: http:// server Ip:15672/ in your browser. Log in with the new user you just added.

This is the end of the "Ubuntu 16.04 RabbitMq installation and Operation tutorial". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Users success services login tutorials runs servers normal content commands instructions plug-ins more versions status knowledge language native management learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft vpn Shulou Technology MySQL