3.7.x has been installed before, and the latest one has reached 3.8.5. The disgusting thing about RabbitMQ is that the version is too confusing, and every few versions, the installation method is slightly different. Let's update it this time.
Then the corresponding erlang version interval of 3.8.5 is as shown in the figure above, this must match. Both the rabbitmq and erlang versions need to match before installing rabbitmq, which means that there must be an erlang environment, just like java needs jvm.
Install: RPM-based Linux
in step 1, and enter the installation. Windows and mac installation is relatively simple, so I won't say more, we mainly talk about the installation in Linux. After opening this link, it’s actually quite messy. You have to read them one by one. There is no title or serial number. It feels unfriendly to developers who come in for the first time, especially if the English is not good. But it doesn't matter, you can install it step by step. Find Install RabbitMQ Server
, as shown below:Click on the first link install a recent Erlang version via yum
in the figure above to enter the following page:
This is the pre-script file used to install erlang, copy it to your own linux system to run:
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
After running, you see the following prompt, indicating that the file dependency library has been configured, and you can continue to install it now.
yum install erlang
Successful installation after running
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey``rpm --import https://packagecloud.io/gpg.key
If the key is imported successfully, it will be OK if no error is reported.
rabbitmq-server
:Click the Package Cloud
in the red box, and open it as follows:
Copy this command to Linux and run:
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
Prompt that the installation is successful, and then you can formally install the rabbitmq installation package!
Download the Server
, and download the rpm in the red box. This needs to be installed. When downloading, download it according to your own centos version. I use centos7 here, then centos6 is a bit old, centos8 is too new . rpm -ivh rabbitmq-server-3.8.5-1.el7.noarch.rpm
Error after running:
In the picture, this means that there is no key and no socat, it doesn't matter, just install it. Find this location, then copy the key to the command line and run:
Copy to the command line to run the import:
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
rabbitmq-server
again: rpm -ivh rabbitmq-server-3.8.5-1.el7.noarch.rpm
At this time, you are prompted to install socat
, run the following script to install, the installation process is relatively slow, just wait patiently:
yum -y install epel-release``yum -y install socat
rpm -ivh rabbitmq-server-3.8.5-1.el7.noarch.rpm
At this time, as shown above, rabbitmq is installed! !
rabbitmq.conf
as follows:comma
at the end of the braces:This means that the default user who runs the guest can log in in a non-local environment
service rabbitmq-server start
An error is reported after the startup, which is really a pit. . .
journalctl -xe
Then there is a sentence saying that the node rabbit
is not started and cannot be connected. Look at the content in the figure. Connecting to a certain port does not work. The first reaction to seeing the port is port occupied
, check it
Check the port:
Then kill the process
service rabbitmq-server start
Oh, RabbitMQ has been installed. Installing mq has always been a horrible thing, and it fails accidentally. A video will be sent out if it is empty for recording.
In addition, for more configuration information about rabbitmq, please refer to the following link: https://www.rabbitmq.com/configure.html
Recommended Posts