Configure abbitmq-server in CentOS

Source: Internet
Author: User
Tags gz file
Install rabbitmq-server on CentOS *** install python on CentOS6.4 *** NOTE: manually install python2.7.5 instead of other version 1 on the system. install GCC first, run the following command yuminstallgccgcc-c ++ yuminstallzlibyuminstallzlib to install rabbitmq-server on CentOS:

* ** Installing python on CentOS 6.4 ***

Note: manually install python2.7.5. do not change the version above.

1. first install GCC and run the following command: yum install gcc GCC-c ++

Yum install zlib

Yum install zlib-devel

2. download the python-2.7.5.tar.gz file and modify the file permission chmode + x python-7.5.tar.gz

3, extract the tar file, tar-xzvf python-2.7.5.tar.gz

4. cd python-2.7.5

Vim Python-2.7.5/Modules/Setup. dist

./Configure -- prefix =/usr/local/python27 -- with-zlib =/usr/include

Make & make install

5. establish a soft connection to point python to python27 by default.

Mv/usr/bin/python/usr/bin/python2.6.6.old

Ln-s/usr/local/bin/python27/usr/bin/python

 

Python installation or upgrade has been completed. let's take a look at the current python version:

# Python-V

Python 2.7.5

Although python has been installed, the yum command may be faulty-yum cannot work properly:

This is because the default python version of yum is 2.6.6 and the current python version is 2.7.5, you only need to configure the default python version of yum:

# Vi/usr/bin/yum

#! Change/usr/bin/python

#! /Usr/bin/python2.6

 

* ** Install Erlang on CentOS 6.4 ***

In this section, we will learn how to install erlang on CentOS 6.4. the specific Erlang version is R16B02.

Before installation, you must install other software. otherwise, some software modules that are not dependent on the software may fail during installation.

1, first of all to install GCC GCC-C ++ Openssl modules since:

Yum-y install make gcc-c ++ kernel-devel m4 ncurses-devel openssl-devel

 

2. install the ncurses module again.

Yum-y install ncurses-devel

Yum install ncurses-devel

3. download the Erang source code file, and grant permissions to the file and decompress the file:

Wget http://www.erlang.org/download/otp_src_R16B02.tar.gz

Chmod + x otp_src_R16B02.tar.gz

Tar-xzvf otp_src_R16B02.tar.gz

Mv otp_src_R16B02 erlang_R16B # Rename and decompress a thick file

 

4. The following is a major installation of erlang. perform the following operations in sequence:

Cd erlang_R16B/

. /Configure -- prefix =/usr/local/erlang -- with-ssl -- enable-threads -- enable-smp-support -- enable-kernel-poll -- enable-hipe -- without-javac/ /without java compilation, so remove java to avoid errors

Make & make install // install after Compilation

 

5. configure the erlang environment:

Vi/etc/profile

ERL_HOME =/usr/local/erlang

Export PATH = $ PATH: $ ERL_HOME/bin

Now erlang has been configured. now let's test whether the installation is successful. enter the erl command in the console. if it appears in erlang shell, the installation is successful:

...

 

* ** Install rabbitmq-server-3.1.5 on CentOS ***

This section describes how to install RabbitMQ on CentOS. The version of rabbitmqis rabbitmq-server-3.1.5.tar.gz, and the CentOS version is CentOS 6.4.

Install python and erlang before installing rabbitmq. for the installation process, see install python on CentOS 6.4 and install Erlang on CentOS 6.4.

To install rabbitmq, follow these steps:

1. download the rabbitmq-server-3.1.5.tar.gz file and decompress it:

# Cd/usr/local

# Wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server-3.1.5.tar.gz

# Chmod + x rabbitmq-server-3.1.5.tar.gz

# Tar-xzvf rabbitmq-server-3.1.5.tar.gz

 

2. install the required package before compiling the rabbitmq source code:

# Yum-y install xmlto

Otherwise, compilation fails:

/Bin/sh: line 1: xmlto: command not found

 

3. start to compile the source code:

# Cd rabbitmq-server-3.1.5

# Make

# Make install TARGET_DIR =/opt/mq/rabbitmq SBIN_DIR =/opt/mq/rabbitmq/sbin MAN_DIR =/opt/mq/rabbitmq/man // compile rabbitmq to/opt/ mq/rabbitmq Directory

 

4. install the web plug-in management interface

# Cd/opt/mq/rabbitmq/sbin

# Mkdir/etc/rabbitmq/

# Rabbitmq-plugins enable rabbitmq_management

 

5. now, rabbitmq has been configured and can be started:

#./Rabbitmq-server start &

ERROR: epmd error for host "springzoo": timeout (timed out)

Change/etc/hosts:

127.0.0.1 localhost springzoo

: 1 localhost springzoo

# Ps aux | grep rabbitmq // view port. the default port is 5672.

Netstat-tnlp | grep 5672

Tcp 0 0 0.0.0.0: 15672 0.0.0.0: * LISTEN 30435/beam. smp

Tcp 0 0 0.0.0.0: 55672 0.0.0.0: * LISTEN 30435/beam. smp

Tcp 0 0: 5672: * LISTEN 30435/beam. smp

If the following information is displayed, the startup is successful:

Omitted ....

It is best to enter http: // 127.0.0.1: 15672/login management interface in the browser.

By default, the username and password used for logon are regarded as guest. the logon page is as follows:

Omit again...


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.