Steps for installing and configuring rabbitmq in centos

Source: Internet
Author: User
Tags centos rabbitmq

1 // install the pre-Environment
2 yum install gcc-c ++
3 yum install zlib zlin-devel
01 // replace system default python2.6 --> 2.7
Download and unzip: http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
03 cd Python-2.7.6
04 // Configure the installation directory
05./configure -- prefix =/usr/local/python27
06 // compile & Install
07 make & make install
08 // discard old python
09 mv/usr/bin/python/usr/bin/python2.6.6.old
10 // create a link to the new version of python
11 ln-s/usr/local/python27/bin/python/usr/bin/python
12 // Now python-V:
13 Python 2.7.6
14 // modify the declaration header of the yum script:/usr/bin/yum
15/usr/bin/python ---->/usr/bin/python2.6
01 // install Erlang
02 yum-y install make gcc-c ++ kernel-devel m4 ncurses-devel openssl-devel
03
04 // download Erlang: http://www.erlang.org/download/otp_src_r16b02.tar.gz, decompress
05 // Configure and install
06. /configure -- prefix =/usr/local/erlang -- with-ssl-enable-threads-enable-smmp-support-enable-kernel-poll -- enable-hipe -- without-javac
07 // compile and install
08 make & make install
09 // Configure the environment variable, vim/etc/profile, and add:
10 ERLANG_HOME =/usr/local/erlang
11 PATH = $ ERLANG_HOME/bin: $ PATH
12 export ERLANG_HOME
13 export PATH
14 source/etc/profile
15. Enter the command erl to check whether the installation is successful.
1 // rabbitmq-server installation:
2 // dependent package xmlto
3 yum install xmlto
4 // download and decompress the package
Http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server-3.1.5.tar.gz
6 // compile
7 make
8 // install
9 make install TARGET_DIR =/opt/rabbitmq SBIN_DIR =/opt/rabbitmq/sbin MAN_DIR =/opt/rabbitmq/man
01 install the web plug-in management interface mkdir/etc/rabbitmq
02 rabbitmq-plugins enable rabbitmq_management
03 The following plugins have been enabled:
04 mochiweb
05 webmachine
06 rabbitmq_web_dispatch
07 amqp_client
08 rabbitmq_management_agent
09 rabbitmq_management
10 Plugin configuration has changed. Restart RabbitMQ for changes to take effect.
11 [root @ rabbitmqmaster sbin] # ls/etc/rabbitmq
12 enabled_plugins
1 // start rabbitmq
2 rabbitmq-server start
3 // the host name may not be found,
4 vim/etc/hosts
5 127.0.0.1 localhost $ {hostName}
1 guest/guest login localhost: 15672

Enable rabbitmq background management

1. First, make sure that the rabbitmq-server is not running.

Command to stop the rabbitmq-server service

Sudo service rabbitmq-server stop

2. Open the management plug-in the background

Sudo rabbitmq-plugins enable rabbitmq_management
  
3. Start server

Rabbitmq-server

4. Open the URL http: // 127.0.0.1: 15672 in the browser.

Default user name: guest

Default Password: guest

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.