先配置erlang依赖环境
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
安装erlang 16B03
rpm --import http://binaries.erlang-solutions.com/debian/erlang_solutions.asc
wget -O /etc/yum.repos.d/erlang_solutions.repo http://binaries.erlang-solutions.com/rpm/centos/erlang_solutions.repo
wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
yum update
yum update --skip-broken
yum install erlang
这时候可以输入erl看看erlang环境是否配置成功
安装RabbitMQ 3.3.4并开启web管理
wget -c http://www.rabbitmq.com/releases/rabbitmq-server/v3.3.4/rabbitmq-server-3.3.4-1.noarch.rpm
yum install rabbitmq-server-3.3.4-1.noarch.rpm
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server start
添加admin用户,不知为什么自带的guest无法登陆
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
配置自启动
/etc/rc.d/rc.local中加入
service rabbitmq-server start
使用ip:15672 登陆即可
参考文章:
http://blog.csdn.net/leekwen/article/details/23333659
CentOS 6.5中配置RabbitMQ,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/chinaboard/p/3819527.html