给大家带来CentOS6.4下源码装置rabbitmq集群
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!1、实行情况192.168.56.101r1.com
192.168.56.102r2.com
2、修正主机名
#cat/etc/hosts
127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4
::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6
192.168.56.101r1r1.com
192.168.56.102r2r2.com
3、装置前筹办
#yum-yinstallgcc*makencurses-devellibxsltxsltprocunzipnc
4、装置erlang
#tar-zxvfotp_src_17.4.tar.gz
#cdotp_src_17.4
#./configure
#make&&makeinstall
5、装置rabbitmq
#tar-zxvfrabbitmq-server-3.4.2.tar.gz
#cdrabbitmq-server-3.4.2
#make&&makeinstall
6、修正PATH路径
#vim~/.bash_profile
PATH=$PATH:$HOME/bin:/root/rabbitmq-server-3.4.2/scripts
#source~/.bash_profile
7、启动rabbitmq
#rabbitmq-server-detached
8、启用web办理插件,重启rabbitmq失效
#rabbitmq-serverenablerabbitmq_management
假如/etc/rabbitmq不存在会报以下毛病:
Error:{cannot_write_enabled_plugins_file,”/etc/rabbitmq/enabled_plugins”,enoent}
mkdir/etc/rabbitmq
9、封闭rabbitmq
#rabbitmqctlstop
10、修正两个节点的cookie值一样
#cat/root/.erlang.cookie
WNZBLBYBFEMCSGOTZCFM
11、设置集群
<divstyle="padding:0px;margin:0px;color:rgb(44,44,44);font-family:宋体,ArialNarrow,arial,serif;font-size:14px;line-height:28px;"><divclass="syntaxhighlighterbash"id="highlighter_6281"style="width:720px;padding:0px!important;margin:0.3em0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow-y:visible!important;overflow-x:auto!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;box-sizing:content-box!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"><divclass="container"style="padding:0px!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background:none!important;">以自力的启动rabbitmq
#rabbitmq-server-detached
中断使用步伐
#rabbitmqctlstop_app
之内存的体例到场rabbit@r2集群
#rabbitmqctljpin_cluster--ramrabbit@r2
启动使用步伐
<divclass="linenumber8index7alt1"style="white-space:nowrap;padding:0px1em!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:static!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;">
给大家带来CentOS6.4下源码装置rabbitmq集群
是爷们的娘们的都帮顶!大力支持 我们这一代90后,从小接触的是windows98,家里条件好的自己有电脑装的是2000,后来又有了XP,上大学时又有了win7。 Linux只是个内核!这点很重要,你必须理解这一点。只有一个内核是不能构成一个操作系统的。 对我们学习操作系统有很大的帮助,加深我们对OS的理解。? 随着IT从业人员越来越多,理论上会有更多的人使用Linux,可以肯定,Linux在以后这多时间不会消失。 就这样,我们一边上OS理论课,一边上这个实验,这样挺互补的,老师讲课,一步一步地布置任务 选择一些适于初学者的Linux社区。 和私有操作系统不同,各个Linux的发行版本的技术支持时间都较短,这对于Linux初学者是往往不够的。
页:
[1]