CentOS6.8 installation RABBITMQ

Source: Internet
Author: User
Tags chmod rabbitmq

Original address: http://www.lai18.com/content/4987142.html


One, dependent package installation #yum-y install make GCC gcc-c++ kernel-devel M4 ncurses-devel openssl-devel perl unixodbc unixodbc-devel zip Unzi P Xmlto wget

Second, Erlang Environment
1. Download and install
#cd/USR/LOCAL/SRC
#wget http://erlang.org/download/otp_src_R15B03-1.tar.gz
#chmod +x otp_src_r15b03-1.tar.gz
#tar-XZVF otp_src_r15b03-1.tar.gz
#mv otp_src_r15b03-1 erlang_r15b//rename uncompressed file
#cd erlang_r15b/
#./configure--prefix=/usr/local/erlang--with-ssl--enable-threads--enable-smp-support--enable-kernel-poll-- Enable-hipe--without-javac//Without Java compilation, so get rid of Java to avoid errors
#make && make Install//post-compile installation

2. Configure Erlang Environment
#vi/etc/profile
Content added: Export path= $PATH:/usr/local/erlang/bin
#source/etc/profile

3, Test Erlang environment:
# Erl
Erlang r15b03 (erts-5.9.3.1) [source] [async-threads:0] [hipe] [Kernel-poll:false]

Eshell V5.9.3.1 (abort with ^g)
1> a=12.
12
2> A.
12


Third, Rabbitmq-server

1, manually install python2.7 and do not move the original version
#cd/USR/LOCAL/SRC
#wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
#tar ZXVF python-2.7.13.tgz
#cd Python-2.7.13
#./configure--prefix=/usr/local/python27--with-zlib=/usr/include
#make && make Install

2, establish a soft connection, so that the system's default Python point to Python27
#mv/usr/bin/python/usr/bin/python2.6.6.old
#ln-S/usr/local/python27/bin/python/usr/bin/python
Now that you have completed all of the installation or upgrade of Python, let's take a look at the current version of Python:
#python-V
Python 2.7.13

3, although now Python has been installed, but using the Yum command will have problems yum not work:
This is because the Python version used by default Yum is 2.6.6, now the Python version is 2.7.13, so this problem occurs, only need to yum the default Python configuration version of the line:

#vi/usr/bin/yum

Change the #!/usr/bin/python of the file header to

#!/usr/bin/python2.6

4. Installation RABBITMQ
#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
#cd rabbitmq-server-3.1.5
#make
#make Install TARGET_DIR=/USR/LOCAL/RABBITMQ Sbin_dir=/usr/local/rabbitmq/sbin Man_dir=/usr/local/rabbitmq/man

5, install the Web plug-in management interface
#mkdir/etc/rabbitmq/
#cd/usr/local/rabbitmq/sbin
#./rabbitmq-plugins Enable Rabbitmq_management

6, Start RABBITMQ
#./rabbitmq-server Start &


# PS aux | grep RABBITMQ//view port, default 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

Finally, we can enter the IP address on the browser: 15672 Login Admin Interface

The username and password of the login are counted as guest by default



Reference: http://www.cnblogs.com/chunguang/p/5634342.html

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.