Skip to content

在 CentOS 6.5 安装 RabbitMQ

Published: at 00:00
更新源
yum install wget -y
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum makecache
安装包
yum install gcc make gcc-c++ xmlto zip unzip ncurses-devel openssl-devel -y
安装python-simplejson & git
yum install python-simplejson -y
yum install git-core -y
安装Erlang
安装RabbitMQ
启用 rabbitmq_management
mkdir -p /etc/rabbitmq
rabbitmq-plugins enable rabbitmq_management
启动
rabbitmq-server -detached
查看安装的插件
rabbitmq-plugins list
停止
rabbitmqctl stop
开放端口
iptables -I INPUT -p tcp --dport 5672 -j ACCEPT
iptables -I INPUT -p tcp --dport 5672 -j ACCEPT
增加用户及加入administrator
rabbitmqctl add_user nate 123123
rabbitmqctl set_user_tags nate administrator
删除用户
rabbitmqctl delete_user guest
修改密码
rabbitmqctl change_password nate 123123
访问管理平台
http://10.211.55.61:15672/