RabbitMQ系列之Centos 7安装RabbitMQ 3.6.1
2016-03-25 10:50 Chris_Mo 阅读(492) 评论(0) 编辑 收藏 举报1、安装EPEL-7:
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
2、安装erlang 语言环境:
yum install erlang xmlto erl --version #Erlang > R16
3、安装rabbitmq rpm包:
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpm rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc yum install rabbitmq-server-3.6.1-1.noarch.rpm #默认安装目录:/usr/lib/rabbitmq/lib/rabbitmq-server-3.6.1
4、启动及配置开机启动 :
chkconfig rabbitmq-server on /etc/init.d/rabbitmq-server start
5、启用插件rabbitmq management :
rabbitmq-plugins enable rabbitmq_management /etc/init.d/rabbitmq-server restart 或者 service rabbitmq-server restart
备注:登陆网址:http://localhost:15672 默认登陆用户名:guest 密码:guest
6、RabbitMQ vhost and user/password :
rabbitmqctl add_vhost /test sudo rabbitmqctl add_user test test rabbitmqctl set_user_tags test administrator sudo rabbitmqctl set_permissions -p /test test ".*" ".*" ".*"
大功告成: