CENTOS6.4+RABBITMQ Cluster--source installation

Source: Internet
Author: User

1. Experimental Environment

192.168.56.101r1.com192.168.56.102r2.com

2. Modify Host name

# cat/etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localh Ost.localdomain Localhost6 localhost6.localdomain6192.168.56.101r1 r1.com192.168.56.102 r2r2.com

3. Pre-Installation Preparation

#yum-y install gcc* make ncurses-devel libxslt xsltproc unzip NC

4. installing Erlang

#tar-zxvf otp_src_17.4.tar.gz#cd otp_src_17.4#./configure#make && make install

5. installing rabbitmq

#tar-zxvf rabbitmq-server-3.4.2.tar.gz#cd rabbitmq-server-3.4.2#make && make install

6. Modify path path

# vim ~/.bash_profile path= $PATH: $HOME/bin:/root/rabbitmq-server-3.4.2/scripts# Source ~/.bash_profile

7. start rabbitmq

#rabbitmq-server-detached

8. Enable Web Management plug-in, restart rabbitmq effective

#rabbitmq-server Enable Rabbitmq_management

If /etc/rabbitmq does not exist, it will report the following error:

Error: {cannot_write_enabled_plugins_file, "/etc/rabbitmq/enabled_plugins", ENOENT}MKDIR/ETC/RABBITMQ

9. Close rabbitmq

#rabbitmqctl stop

Ten, Modify the cookie value of two nodes as

#cat/root/.erlang.cookiewnzblbybfemcsgotzcfm

one, Configuring the cluster

Stop the application with a standalone boot rabbitmq#rabbitmq-server-detached #rabbitmqctl stop_app add memory to the [email protected] cluster #rabbitmqctl Jpin_ cluster--ram [email protected] Launch application #rabbitmqctl start_app view cluster status #rabbitmqctl cluster_status


Web view is as follows

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/56/D0/wKiom1SOjTOhmWoOAAOFXjE0-Do048.jpg "style=" float: none; "title=" sr1.jpg "alt=" Wkiom1sojtohmwooaaofxje0-do048.jpg "/>


can also be changed into Disc Mode

#rabbitmqctl stop_app#rabbitmqctl reset#rabbitmqctl join_cluster [email protected] #rabbitmqctl Start_app


Web view is as follows

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/56/CD/wKioL1SOjdKgCTpaAAFmW6goEo8459.jpg "title=" Sw2.jpg "style=" Float:none; "alt=" wkiol1sojdkgctpaaafmw6goeo8459.jpg "/>


This article is from the "Bamboo Potential" blog, please be sure to keep this source http://peaceweb.blog.51cto.com/3226037/1590107

CENTOS6.4+RABBITMQ Cluster--source installation

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.