Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu 16.04 RabbitMq installation and running tutorial

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report