Red Hat Installation Deployment RABBITMQ

Source: Internet
Author: User
Tags rabbitmq

First,RabbitmqInstall the Deployment manual

1. Introduction to the environment

System Environment: Red hatenterprise Linux Server Release 6.2 (Santiago)

kernel version: Linux zxt-02.com2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST. x86_64 x86_64 x86_64 gnu/linux

software version:otp_src_17.3;rabbitmq-server-3.2.4;Python 2.6.6;simplejson-3.3.2;  

Host Name: zxt1.com

Host IP : 192.168.1.108

Install the required software environment:

RABBITMQ is written in Erlang, so we need to install Erlang, install Erlang and need to install python and Simplejson, so we start with Python :

2, installationPython:

The Python version 2.6 of the Redhat6.2 system has been satisfied with the required version of the software so this is installed with yum .

#yum install-y python*


Tips: individual system comes with A lower version of Python requires manual compilation of the installation or upgrade.

Compiling the installation Python

#wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2

#tar-JXVF python-2.5.2.tar.bz2

#cd Python-2.5.2

#./configure

#make && make Install


test: Enter python at the command line and the Python interpreter will indicate thatit is installed correctly.

[[email protected] soft]# python

Python 2.6.6 (r266:84292, Sep 12 2011, 14:03:14)

[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2

Type "Help", "copyright", "credits" or "license" for more information.

>>>

3, installationSimplejson:

#wget http://pypi.python.org/packages/source/s/simplejson/simplejson-3.3.2 . tar.gz

Installation:

#tar zxvf simplejson-3.3.2 . tar.gz

#cd simplejson-3.3.2

#python setup.py Build

#python setup.py Install

Tips:

if it appears :

Warning:the Cextension could not be compiled, speedups is not enabled.

Plain-pythoninstallation succeeded.

do not take care of direct execution :

#python setup.py Install

4, installationErlang4.1, install the basic dependent environment:

#yum-y install make* gcc* gcc-c++* kernel-devel* m4* ncurses-devel*openssl-devel*

#yum-y install libx* java* tk* unixodbc* unixodbc-devel*

#yum-y Install ncurses-devel*

#yum-y Install xmlto*


4.2, installationErlang

#wget http://www.erlang.org/download/ otp_src_17.3.tar.gz

#mv otp_src_r16b02 erlang_r16b # Rename the extracted file   

#cd erlang_r16b/

#./configure--prefix=/usr/local/erlang--with-ssl--enable-threads--enable-smp-support--enable-kernel-poll-- Enable-hipe--without-javac

#make && make Install

#vi/etc/profile

Erl_home=/usr/local/erlang

Path= $ERL _home/bin: $PATH

Export Erl_home PATH

#source/etc/profile

Update Environment Variables

Test if the installation is successful , enter the command erl in the console . Executing erl, the shell entering Erlang indicates a successful installation

5, installationRabbitMQ

Http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.1/rabbitmq-server-3.2.4.tar.gz

http://www.rabbitmq.com/releases/rabbitmq-server/v3.3.0/rabbitmq-server-3.3.0-1.noarch.rpm

#yum Install NC (nc.x86_64)

Cd/usr/local

#cd rabbitmq-server-3.2.4

#make Target_dir=/opt/rabbitmqsbin_dir=/opt/rabbitmq/sbin Man_dir=/opt/rabbitmq/man DOC_INSTALL_DIR=/OPT/RABBITMQ /doc

#make Target_dir=/opt/rabbitmqsbin_dir=/opt/rabbitmq/sbin Man_dir=/opt/rabbitmq/man DOC_INSTALL_DIR=/OPT/RABBITMQ /doc Install

then go to the/usr/local/sbin/ directory to see if any of the following files

[Email protected] sbin]# pwd

/opt/rabbitmq/sbin

[email protected] sbin]# LL

Rabbitmqctl

Rabbitmq-defaults

Rabbitmq-env

Rabbitmq-plugins

Rabbitmq-server

6, installationWebplug-in management interface

#cd/opt/rabbitmq/sbin

#mkdir/etc/rabbitmq/

#rabbitmq-plugins Enable Rabbitmq_management

7, start/CloseRabbitmqService:

Front desk operation:

rabbitmq-server Start ( after the user closes the connection, the process automatically ends )

Running in the background:

Rabbitmq-server-detached

Terminate RABBITMQ

./rabbitmqctl Stop

Or

./rabbitmqctl stop/var/lib/rabbitmq/mnesia/rabbit\ @hostname. pid


8,RabbitMQAdd User

RABBITMQ If security is done, the default guest cannot log on to the console. We need to create our own users to login

1, Execute add user command

/opt/rabbitmq/sbin/rabbitmqctl Add_user Admin Admin

2, execute the Set permissions command

/opt/rabbitmq/sbin/rabbitmqctl set_permissions-p/admin ". *" ". *" ". *"

Tips: Many of the online installation tutorials do not have this command, causing users to not be able to log on after they have been created.

3, execute the Set role command

/opt/rabbitmq/sbin/rabbitmqctl Set_user_tags Adminadministrator

4. Add a password for the new user

Rabbitmqctl Change_password Username NewPassword

5, perform the View user command

/opt/rabbitmq/sbin/rabbitmqctl list_users


9,RabbitMQCommon Commands

Add Users :

Rabbitmqctl add_user username Password

To set up a new Add user role

Rabbitmqctl set_user_tags Admin Administrator

To Delete a user :

Rabbitmqctl Delete_user username

Change Password :

Rabbimqctl Change_password Username NewPassword

View All Users

Rabbitmqctl list_users

Web Login

Enter service IP and port 55672

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/79/8F/wKioL1aUtDeTzWEbAABhCUy64Kw936.png "title=" 1.png " alt= "Wkiol1autdetzwebaabhcuy64kw936.png"/>

This article is from "Xiao Zhang's blog" blog, please be sure to keep this source http://xiaozhangit.blog.51cto.com/3432391/1734234

Red Hat Installation Deployment RABBITMQ

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.