In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
RabbitMQ is an open source message broker software (also called message-oriented middleware) that implements the Advanced message queuing Protocol (AMQP). The RabbitMQ server is written in Erlang language, while clustering and failover are built on the framework of an open telecommunications platform. All major programming languages have client libraries that communicate with agent interfaces. Update the basic system
Before installing any software packages, it is recommended that you update the packages and repositories with the following command
Yum-y update install Erlang
Because RabbitMQ is developed based on the Erlang (language for high concurrency) language, you need to install Erlang before installing RabbitMQ. In this tutorial we will install the latest version of Erlang to the server. Erlang is not available in the default YUM repository, so you will need to install the EPEL repository. Running the following command is the same.
Yum-y install epel-releaseyum-y update
Install Erlang
Yum-y install erlang socat
You can now check the Erlang version using the following command.
Erl-version
You will get the following output:
[root@liptan-pc ~] # erl-versionErlang (ASYNC_THREADS,HIPE) (BEAM) emulator version 5.10.4 install RabbitMQ
RabbitMQ provides RPM packages for enterprise Linux systems that are precompiled and can be installed directly. The only dependency required is to install Erlang into the system. We have installed Erlang and we can download RabbitMQ further. Download the Erlang RPM package by running it.
Download RabbitMQ
Download RabbitMQ
Wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10-1.el7.noarch.rpm
If you don't have wget installed, run yum-y install wget. You can always find a link to the latest version of the RabbitMQ download page.
Install RabbitMQ
Import the GPG key by running:
Rpm-import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
Run RPM to install the RPM package:
Rpm-Uvh rabbitmq-server-3.6.10-1.el7.noarch.rpm
RabbitMQ is now installed on the system.
Use RabbitMQ
Running
Systemctl start rabbitmq-server
Self-booting
Systemctl enable rabbitmq-server
Check statu
Systemctl status rabbitmq-server visits the Web console to start the web console
Start the RabbitMQ Web Management console by running:
Rabbitmq-plugins enable rabbitmq_management
Provide ownership of the RabbitMQ file to the RabbitMQ user by running the following command:
Chown-R rabbitmq:rabbitmq / var/lib/rabbitmq/ create user
Now you will need to create an administrative user for the RabbitMQ Web administrative console. Running the following command is the same.
Rabbitmqctl add_user admin StrongPasswordrabbitmqctl set_user_tags admin administratorrabbitmqctl set_permissions-p / admin ". *"
Change the administrator to the preferred user name of the administrator user. Be sure to change the StrongPassword to a very strong password.
To access the administrative panel of RabbitMQ, use your favorite Web browser and open the following URL.
Introduction to http://Your_Server_IP:15672/ Management Interface
Login is required for the first visit. The default account password is: guest/guest
Home page
Connections: both producers and consumers need to establish a connection with RabbitMQ to complete the production and consumption of messages. You can check the connection here.
Channels: a channel. After a connection is established, a channel is formed, and the delivery of messages depends on the channel.
Exchanges: switch, used to route messages
Queues: queues, or message queues, where messages are stored in queues, waiting for consumption, and then removed after consumption.
Port:
Add user
The Tags option above actually specifies the role of the user. The following options are available:
Super Admin (administrator)
Can log in to the management console, can view all the information, and can operate on users, policies (policy).
Supervisor (monitoring)
You can log in to the management console and view information about rabbitmq nodes (number of processes, memory usage, disk usage, etc.)
Policy maker (policymaker)
Can log in to the management console and manage policy at the same time. However, you cannot view the information about the node (the part identified in the red box above).
General Manager (management)
You can only log in to the management console, you cannot see the node information, and you cannot manage the policy.
Other
Unable to log on to the management console, usually ordinary producers and consumers.
Create a virtual host (Virtual Hosts)
In order to allow users to work without interfering with each other, RabbitMQ adds the concept of virtual host (Virtual Hosts). In fact, it is an independent access path. Different users use different paths and have their own queues and switches, which will not affect each other.
After creating the virtual host, we also need to add access rights to the user:
Click the added virtual host:
Enter the virtual host settings interface:
Original address: https://www.linuxprobe.com/linux-rabbitmq.html
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.