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 xmltoerl --version #Erlang > R16
3、安装rabbitmq rpm包:
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpmrpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.ascyum 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 /testsudo rabbitmqctl add_user test testrabbitmqctl set_user_tags test administratorsudo rabbitmqctl set_permissions -p /test test ".*" ".*" ".*"
大功告成: