RabbitMQ installation and deployment of Linux on cloud server centos8

1. Install rabbitmq

RabbitMQ is written in Erlang language, so the Erlang environment must be available. Note: The Erlang environment must match the RabbitMQ version. Check the matching address:
https://www.rabbitmq.com/which-erlang.htm

1.1 Download the necessary three rpm packages in windwos

erlang-rpm:
https://github.com/rabbitmq/erlang-rpm/releases

insert image description here

https://www.rabbitmq.com/download.html
找到Downloads on GitHub项下面的RHEL/CentOS 8.x这一项点击会直接下载。

Because the server I bought is OS8, so download 8.X
insert image description here

socat:
http://www.rpmfind.net/linux/rpm2html/search.php?query=socat%28x86-64%29
注意Distribution列要看仔细,选择合适的版本

This can download the package or direct command to download, I am direct command to download

1.2 Upload to Linux

The rz command uploads and downloads files
insert image description here

1.3 Decompress erlang=”socat=”rabbitmq in order

yum install -y erlang-24.0.3-1.el8.x86_64.rpm
yum install -y socat-1.7.3.3-2.el8.x86_64.rpm    或者命令 yum install -y socat
yum install -y rabbitmq-server-3.8.19-1.el8.noarch.rpm

1.4 The installation is successful

Erlang can check the version number
insert image description here
and rabbitmq can start

// 启动服务
systemctl start rabbitmq-server.service
// 查看服务状态
systemctl status rabbitmq-server.service
// 停止
systemctl stop  rabbitmq-server
// 重启
systemctl restart  rabbitmq-server
// 设置开机启动
chkconfig rabbitmq-server on   或 systemctl enable  rabbitmq-server
// 取消开机启动
chkconfig rabbitmq-server off  或 systemctl stop  rabbitmq-server

insert image description here
So far, rabbitmq has been installed on the cloud server

Guess you like

Origin blog.csdn.net/RoyRaoHR/article/details/122337552