本文主要介绍rabbitmq-server-3.6.12的安装部署
# 检查是否已经安装旧版本的软件
rpm -qa|grep erlang rpm -qa|grep rabbitmq
# 如果之前yum安装过rabbitmq可能会有旧版本的软件,需要卸载掉再安装
yum remove erlang-R14B erlang-erts -y
# 配置rabbitmq所需要的yum源(epel源)
su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'
# 安装指定版本的rabbitmq
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el6.x86_64.rpm wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.12/rabbitmq-server-3.6.12-1.el6.noarch.rpm yum install erlang-19.0.4-1.el6.x86_64.rpm -y yum install rabbitmq-server-3.6.12-1.el6.noarch.rpm -y
# 启动rabbitmq并配置开机自启动
service rabbitmq-server start ps -ef|grep rabbitmq chkconfig rabbitmq-server on chkconfig --list rabbitmq-server
# 设置rabbitmq启用的功能
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
# 默认的用户密码为guest,可以创建新的rabbitmq用户并授权
rabbitmqctl add_user admin 123456 rabbitmqctl set_user_tags admin administrator rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
# 创建其他用户nice
rabbitmqctl add_user nice 123456 rabbitmqctl add_vhost nice rabbitmqctl set_user_tags nice administrator rabbitmqctl set_permissions -p "nice" nice ".*" ".*" ".*"
可以访问:http://IP:15672
======== 完毕,呵呵呵呵 ========