首页 > 代码库 > CentOS 6.5中配置RabbitMQ
CentOS 6.5中配置RabbitMQ
先配置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.rpmrpm --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.rpmyum install rabbitmq-server-3.3.4-1.noarch.rpmrabbitmq-plugins enable rabbitmq_managementservice rabbitmq-server start
添加admin用户,不知为什么自带的guest无法登陆
rabbitmqctl add_user admin adminrabbitmqctl set_user_tags admin administrator
配置自启动
/etc/rc.d/rc.local中加入service rabbitmq-server start
使用ip:15672 登陆即可
参考文章:
http://blog.csdn.net/leekwen/article/details/23333659
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。