1,软件包
rabbitmq由于是用erlang写的所以依赖erlang
erlang 下载地址 http://www.erlang.org/
rabbitmq 下载地址 http://www.rabbitmq.com/
2.安装
3.启用用rabbitmq管理后台
$ cd /usr/lib/rabbitmq/bin/ $ sudo rabbitmq-plugins enable rabbitmq_management
$ cd /usr/lib/rabbitmq/bin/ #用户名与密码 $ sudo rabbitmqctl add_user ynothing ynothing #用户设置为administrator才能远程访问 $ sudo rabbitmqctl set_user_tags ynothing administrator $ sudo rabbitmqctl set_permissions -p / ynothing ".*" ".*" ".*"
4.rabbitmq集群
参考了以下网站
http://www.rabbitmq.com/clustering.html
http://www.cnblogs.com/me-sa/archive/2012/11/12/2766700.html
http://www.open-open.com/lib/view/open1453350095355.html
http://88250.b3log.org/rabbitmq-clustering-ha
http://www.centoscn.com/CentosServer/cluster/2014/1216/4324.html
http://www.mamicode.com/info-detail-1126665.html