[RabbitMQ] Installation under Linux [Detailed version]

First of all, let me explain that the Linux version we are using here is CentOS7. For related content, you can refer to my previous blog:
VMware download, installation and creation of virtual machine
VMware installation Centos7 ultimate step-by-step detailed graphic process.
At the end of the above, there are instructions for downloading and installing Xshell.


1. Several ways to install RabbitMQ

Let’s go to the official website for a brief understanding:
RabbitMQ official website

  • First find get started
    Insert image description here

  • Let’s go directly to [download and install]
    Insert image description here

  • First, let's look at the details of the download section (right). The download and installation content is still very rich. We can install RabbitMQ on various systems. Windows provides two methods, one is the installation version and the other is There is a green configuration version (manual), we will look at this later when we have time, and it can be installed on Ubuntu, and today’s focus, on Linux, we click Install: RPM-based Linux

Insert image description here

  • Check the corresponding version installation method.
    Linux also has many different versions. Here we are using the centos community version. The official website provides two installation methods. The first one
    Insert image description here
    is through Package Cloud or Bintray, using Yum to complete the installation, and this is highly recommended. installation method.
    The second is to download the corresponding rpm file through the rpm method and install it. rpm: redhat package manager is an installation package tool.
    In fact, we can also have a third method , which is to download the source code, compile and install it.
    Below we will give an introduction to these three methods, but some of them already have good blogs. I will give direct links to some of the content below.

2. Use yum to install RabbitMQ

The above-mentioned blog on how to install rabbitmq using yum in a Linux environment
is also quite detailed (yum installation is relatively simple to begin with).
Here is a supplement on how to use yum to install the specified version (if not specified, as in the above blog, the default installation is the latest version): yum
installation How to specify a version of a software package
? You can also use a locked version plug-in to prevent it from automatically updating:
Use of the yum-plugin-versionlock plug-in

3. Install RabbitMQ using rpm

If you use rpm to install here, I have written a speedy installation version before. The installation files used in it are packaged by me. You can install them directly by command. Here is the link, and then I will briefly share the download of the latest rabbitmq related rpm files. Method:
[RabbitMQ] Installation under Linux [Express Version]

As for rpm, it is an installation package management tool like yum. Its full name is redhat package manager . Click here for details.
Next, we continue to go to the official website to see how to install and what to pay attention to:

Insert image description here
In the overview, the first point is that it is recommended to use the latest package distribution of yum to obtain downloads. The second point is that there are multiple versions of rpm packages provided for installation into different centos versions. Remember not to download the wrong one. .
The third one is that the installation of rpm requires sudo permissions. If we practice using it by ourselves, the virtual machine must have the highest administrator authority, so for practice, we can ignore it. If you are a non-administrator user, please contact us by yourself. Admin 0.0

Then we click on dependencies in the picture above to see which rpm packages need to be installed and downloaded:

Insert image description here
In addition to rabbitmq, three more dependencies are needed. Here is a brief explanation:
1. erlang . Needless to say, rabbitmq is written using it. The official website is attached: erlang official website
2. socat , which is a multi-functional network tool. Attached is the download address: socat download address (source code) We will talk about the download of the rpm package later.
3. Logrotate is a log file management tool.
Among them, we only need to download and install 1 and 2. The Linux system installs logrotate by default.

Next let’s look at the erlang rpm package download

Insert image description here
There are also many download addresses. We recommend the address in the blue box. This is a version that purely supports rabbitMQ. It has no other add-ons in erlang and only contains the functions required by rabbitMQ.
Download address on github: github: erlang-rpm download
Before downloading, we have to look at version compatibility issues: click on supported by RabbitMQ

Insert image description here
See the rabbitmq version and the corresponding required minimum and maximum erlang versions: rabbitmq corresponding erlang version

Insert image description here

Next, we can still download the corresponding rabbitmq from github: github download rabbitmq
Insert image description here
, select the version you want to download, click in, and drag to the bottom of the page. There are various file formats available for download: what
we need is rpm, and do not download src. rpm will do.

Insert image description here
Finally, for socat, the official website given above does not have the download address of the rpm package, only the download of the source code package. But in fact, we can download the rpm installation package from a variety of channels: Two methods for downloading the rpm package. Here we visit
pkgs . org to download:
Website address: https://pkgs.org.
After entering a verification code, you can start searching. Enter socat directly, and then find centos7 to download. The
Insert image description here
following steps are the same as the speed version
[RabbitMQ] under Linux. Installation [Extreme Version]


4. Compile and install RabbitMQ using source code

For source code installation, I recommend this blog:
Installing RabbitMQ under Linux
is more detailed.
Note that the source code installation only requires two steps, erlang and rabbitmq, but not socat. The reason is guessed that the erlang source code compilation package contains socat related content.
The download address of the source code package is available in the above blog, but the version is not the latest. If you can't find the ideal version, you can still go to the github mentioned above to find it, which contains various packages.


that's all.

Guess you like

Origin blog.csdn.net/cjl836735455/article/details/109763612