首页 > 代码库 > Rabbitmq部署

Rabbitmq部署

rabbitmq
#centos7
erlang
yum -y install ncurses-devel unixODBC-devel  openssl-devel
./configure --prefix=/usr/local/erlang
checking for tgetent in -ltermcap... no
checking for tgetent in -ltermlib... no
configure: error: No curses library functions found
configure: error: /bin/sh ‘/opt/otp_src_19.1/erts/configure‘ failed for erts
#set erlang environment
export PATH=$PATH:/usr/local/erlang/bin
tar -xf rabbitmq-server-generic-unix-3.6.5.tar
mv rabbitmq_server-3.6.5 rabbitmq
mv rabbitmq /usr/local/
#set rabbitmq environment
export PATH=$PATH:/usr/local/rabbitmq/sbin
rabbitmq-server start &
mkdir -m 777 /etc/rabbitmq/
rabbitmq-plugins enable rabbitmq_management
rabbitmqctl stop
复制通讯的.erlang.cookie
scp -r scp -r .erlang.cookie 10.1.1.43:/root/
集群主节点
rabbitmq-server -detached
rabbitmqctl cluster_status
从节点
rabbitmq-server -detached
rabbitmqctl stop_app
从做磁盘节点加入
rabbitmqctl join_cluster rabbit@rabbit43
从做内存节点加入
rabbitmqctl join_cluster -ram rabbit@rabbit43

本文出自 “运维笔记” 博客,请务必保留此出处http://phospherus.blog.51cto.com/7824598/1930106

Rabbitmq部署