Installing rabbitmq3.6.x on CentOS

Source: Internet
Author: User
Tags install openssl rabbitmq

RabbitMQ3.6.1 installation method is a bit different from the previous version, I found a lot of information on the Internet, the basic is about 3.1 of the version, and the installation process is very cumbersome, so I spent an afternoon to study how to achieve the simplest installation. In order to let everyone less detours, the installation process recorded down, but also easy to later if you forget to review. 3.6 The biggest feature is no longer run make command, but directly decompression can be used. Here are the specific steps:


1. First download RABBITMQ, the address is: http://www.rabbitmq.com/install-generic-unix.html. Here we download the version of generic UNIX, download the file name: Rabbitmq-server-generic-unix-3.6.1.tar.xz. XZ is a lossless data compression file format using the LZMA compression algorithm, which is a compression tool with a large number of Linux defaults. Its decompression method for xz-d {to extract the filename}, extracted is a tar file, I can use the Tar file decompression method tar-xvf {extracted tar filename}.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7C/D1/wKioL1bYb-7DKz6KAABJcgAenfw516.png "title=" 2.PNG " alt= "Wkiol1byb-7dkz6kaabjcgaenfw516.png"/>
Tar extracted is a folder called rabbitmq_server-3.6.1, in order to facilitate management we moved it to/usr/local/bin under.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7C/D2/wKiom1bYcIODrdjNAAAx_19O9jk568.png "title=" 3.PNG " alt= "Wkiom1byciodrdjnaaax_19o9jk568.png"/>
So far, the basic installation of RABBITMQ is complete, and this version does not require additional compilation and installation.

2. Install the latest version of Erlang, because RABBITMQ is developed based on Erlang. Remember: Be sure to use the latest version, or you might get an error when starting RABBITMQ, and I started to get a few hours to find out why Erlang's version is too low.

Go to the Erlang website to download the latest source file files, the address is: http://www.erlang.org/downloads

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7C/D2/wKiom1bYXpbx5sUPAADdJzImens278.png "title=" 1.PNG " alt= "Wkiom1byxpbx5supaaddjzimens278.png"/>

Download the file name is: otp_src_18.2.1.tar.gz, we use TAR-ZXVF decompression can be. Unzip and generate the otp_src_18.2.1 folder, enter the folder, and configure it with./configure--prefix=/usr/local/bin/erlang--without-javac, which can cause many errors. The underlying dependencies are missing, and the specific error descriptions and workarounds are listed below.

Error 1:

Ignoring the--cache-file argument since it can cause the system to be erroneously configureddisabling cachingchecking Bui LD system Type ... x86_64-unknown-linux-gnuchecking host system type ... x86_64-unknown-linux-gnuchecking for gcc ... Nochecking for CC ... Nochecking for CC ... Nochecking for CL ... Noconfigure:error:no acceptable C compiler found in $PATHSee ' Config.log ' for more details.

Cause: The GCC compiler is missing. Workaround:

Yum Install-y gcc-c++

Error 2:

Checking for tgetent in-ltinfo ... nochecking for tgetent in-lncurses ... nochecking for tgetent in-lcurses ... nochecking For Tgetent in-ltermcap ... nochecking for tgetent in-ltermlib ... noconfigure:error:No curses library functions Foundc Onfigure:error:/bin/sh '/software/otp_src_18.2.1/erts/configure ' failed for ERTs

Cause: Curses is not installed. Workaround:

Yum-y Install Ncurses-devel

Error 3:

Crypto:no usable OpenSSL Foundjinterface:java compiler disabled by USERODBC:ODBC Library-lin K Check Failedssh:no usable OpenSSL foundssl:no usable OpenSSL found

Reason: No OpenSSL is missing. Workaround:

Yum Install Openssl-devel

Error 4:

Jinterface:java compiler disabled by USERODBC:ODBC Library-link check failed

Cause: The ODBC Library is missing. Workaround:

Yum Install Unixodbc-devel

Finally run the make and made Insall commands, and after running, the Erlang folder will be available under/usr/local/bin. We'll first add the paths to the RABBITMQ and Erlang executable files so that they can be executed everywhere. Here we directly change the Etc/profile file to work for all users. Add in the appropriate location of the profile:

Export path= $PATH:/usr/local/bin/erlang/bin:/usr/local/bin/rabbitmq_server-3.6.1/sbin

After finishing the input source/etc/profile let the configuration function, and then enter the Erl, if the following screen shows that the installation is successful.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7C/D1/wKioL1bYe1CTgTyoAAAbK5hqGio047.png "title=" 5.PNG " alt= "Wkiol1bye1ctgtyoaaabk5hqgio047.png"/>

Last input Rabbitmq-server, the following screen shows that RABBITMQ started successfully.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7C/D2/wKiom1bYfBfy_CSPAABAtNksZ08072.png "title=" 6.PNG " alt= "Wkiom1byfbfy_cspaabatnksz08072.png"/>

If you want to use the Web management interface, run the following command:

Rabbitmq-plugins Enable Rabbitmq_management

The default user name and password for the Web management interface are guest

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7C/D1/wKioL1bYfVSiaVUGAABdmNfCnbg844.png "title=" 7.PNG " alt= "Wkiol1byfvsiavugaabdmnfcnbg844.png"/>

Last question: We may encounter {ERROR:EPMD error for Host ' * * * * * error when starting RABBITMQ. This is because your host name and IP do not match, you must put the current hostname into the/etc/hosts file. When RABBITMQ is installed with the default method above, the address used is 127.0.0.1, and the current hostname is appended to the/etc/hosts file 127.0.0.1 back.


Summary: The RabbitMQ3.6 version does not need to be as complex as the previous installation process, only with the installation of Erlang. Dependent software like Python, as long as the newer Linux distributions are basically integrated.



This article is from the "Bronze Gong" blog, please be sure to keep this source http://jaeger.blog.51cto.com/11064196/1747401

Installing rabbitmq3.6.x on CentOS

Related Article

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.