Install RABBITMQ under Linux

Source: Internet
Author: User
Tags sha1 rabbitmq

Open Official Website: http://www.rabbitmq.com/download.html

Click to go to another page

Pull down, the document provides us with a useful help, the first one is to view the RABBITMQ and Erlang version of the relationship, the second is the GitHub address of Erlang

Click on the first link: http://www.rabbitmq.com/which-erlang.html

Click on the second link: https://github.com/rabbitmq/erlang-rpm/releases

You can see the packaged, for CentOS6 or 7

So far: I have downloaded two files

The installation starts below.

First uploaded to CentOS7, I used the FileZilla, uploaded to the/soft directory, this directory customization

Then navigate to the installation you want to install.

[Email protected] ~]$suRootpassword: [[email protected] admin]# CD/soft/[email protected] soft]# lltotal299536-rw-r--r--.1Root root18478672Mar -  .: - erlang-20.3-1.el7.centos.x86_64.rpm-rw-r--r--.1Root root189756259Mar -  .: - jdk-8u161-linux-x64.tar.gz-rw-r--r--.1Root root49766096Mar -  .: - kafka_2.11-1.0.1.tgz-rw-r--r--.1Root root12045148Mar -  .: - rabbitmq-server-3.7.4-1.el7.noarch.rpm-rw-r--r--.1Root root36668066Mar -  .: - Zookeeper-3.4.11.tar . gz[[email protected] soft]#

Install Erlang first.

RPM-IVH erlang-20.3-1

installation process

[Email protected] soft]# RPM-IVH erlang-20.3-1. el7.centos.x86_64.rpm Warning:erlang-20.3-1. El7.centos.x86_64.rpm:Header V4 rsa/SHA1 Signature, key ID 6026dfca:nokeypreparing ... ################################# [ -%]updating/Installing ...1: erlang-20.3-1. El7.centos ################################# [ -%][[email protected] soft]# rpm-qa |grepErlangerlang-20.3-1. El7.centos.x86_64[[email protected] soft]#

Then install RABBITMQ

[Email protected] soft]# RPM-IVH rabbitmq-server-3.7. 4-1. el7.noarch.rpm warning:rabbitmq-server-3.7. 4-1. El7.noarch.rpm:Header V4 rsa/SHA1 Signature, key ID 6026dfca:nokeyerror:failed Dependencies:    Socat is needed by RABBITMQ-server-3.7.4-1.el7.noarch

OK, first install the socat.

Yum Install -y Socat

In this case, Erlang and rabbitmq I didn't install with Yum to make it clear that dependencies (there is a version dependency between Erlang and RABBITMQ)

After installation:

Now you can install RABBITMQ.

[Email protected] soft]# RPM-IVH rabbitmq-server-3.7.4-1. el7.noarch.rpm WARNING:RABBITMQ-server-3.7.4-1. El7.noarch.rpm:Header V4 rsa/SHA1 Signature, key ID 6026dfca:nokeypreparing ... ################################# [ -%]updating/Installing ...1: rabbitmq-server-3.7.4-1. EL7 ################################# [ -%][[email protected] soft]#

Installing the control console plug-in

rabbitmq-  plugins Enable rabbitmq_managementThe following plugins has been configured:  rabbitmq_management  rabbitmq_management_agent  rabbitmq_web_dispatchapplying plugin configuration to [email protected]the Following plugins have been enabled:  rabbitmq_management  rabbitmq_management_agent  3  systemctl start rabbitmq-server

Next, open the virtual machine's local browser and enter

http://localhost:15672/

Will let you enter the account password, all lose:Guest

Here's a question, you can only visit locally. If you use the guest to access externally (using a browser under Windows)

Then it can be solved, add a user, open the local browser, go to the console

Once added, you can access the

Open the firewall first

[Email protected] soft]# firewall-cmd--zone=public--add-port=15672/tcp--Permanentsuccess[[email Protected] soft]# systemctl restart Firewalld

View our users

Install RABBITMQ under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.