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

Environment Building method of RabbitMq

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

Share

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

The main content of this article is to explain "the method of building the environment of RabbitMq". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "the method of building the environment of RabbitMq".

1. Stand-alone construction

To install RabbitMQ, you need to install Erlang first, because it runs based on Erlang's VM.

The dependencies required by RabbitMQ: socat and logrotate, already exist in the logrotate operating system, just install socat.

1.1 installation depends on socat and logrotate# check whether logrotate installs rpm-qa | grep logrotate# if there is no installation install logrotate yum install logrotate-y # check whether socat installs rpm-qa | grep socat# if there is no installation install socat yum install socat-y

1.2 install Erlang

For more information on the compatibility between RabbitMQ and Erlang, please see https://www.rabbitmq.com/which-erlang.html

# obtain Erlang package wget https://github.com/rabbitmq/erlang-rpm/releases/download/v23.0.2/erlang-23.0.2-1.el7.x86# install Erlangrpm-ivh erlang-23.0.2-1.el7.x86_64.rpm

Verify that Erlang is installed successfully as shown below (halt ()). Exit)

Erl installation directory

The following error occurred: run

Yum install libnsl*-y

1.3 install rabbitMQ# get rabbitMQ installation package wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.5/rabbitmq-server-3.8.5-1.el7.noarch.rpm# install rabbitMQrpm-ivh rabbitmq-server-3.8.5-1.el7.noarch.rpm# open RabbitMQ management plug-in-network access http://IP:15672rabbitmq-plugins enable rabbitmq_management#rabbitmq startup command # foreground Start rabbitmq-server background start rabbitmq-server-detached restart rabbitmq-server restartsystemctl start rabbitmq-server#rabbitmq close command systemctl stop rabbitmq-server# add user rabbitmqctl add_user root 12345 add permissions rabbitmqctl set_permissions root-p / ". *" # set labels and permissions to users rabbitmqctl set_user_tags root administratorTAGCapablities (terms of reference) (None) do not have access to the management plug-in management can Permission to do anything using the message protocol Plus

1. You can query the AMQP protocol to log in to the virtual machine permission 2. View permissions for all queues, switches and bindings in all virtual hosts that they can log in to. Permission to view and close their own channels and connections 4. View the global statistics in the virtual hosts they can access, including other users' active policymaker, all management tags can do this, plus 1. On virtual hosts where they can log in through the AMQP protocol, view, create, and delete permissions for policy-level virtual host parameters monitoring all managerment can do, plus

1. List all virtual hosts, including virtual host permissions that cannot be accessed using the message protocol 2. View permissions for other user connections and channels. 3. View node-level data and memory usage and cluster permissions 4. View the true global permissions for all virtual host statistics administrator all policymaker and monitoring can do, plus:

1. Create permission to delete virtual host 2. View, create, and delete user permissions 3. Permission to view, create, and delete permissions 4. Close the rights of other users to connect

Common command

# View all queues: rabbitmqctl list_queues# clears all queues: rabbitmqctl reset# View user: rabbitmqctl list_users# View status: rabbitmqctl status so far, I believe you have a deeper understanding of "RabbitMq environment building method". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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