CentOS 6 安装RabbitmqCluster

Rabbitmq 教程

Rabbitmq 官方文档:http://www.rabbitmq.com/documentation.html
Rabbitmq 下载安装:http://www.rabbitmq.com/download.html
Rabbitmq 使用教程:http://www.rabbitmq.com/getstarted.html
Rabbitmq 博客http://www.rabbitmq.com/blog/

Rabbitmq 安装

基于epel源,安装Rabbitmq

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

# 安装依赖环境erlang
yum install erlang -y

# 安装rabbitmq
yum install rabbitmq-server -y

Rabbitmq 使用

  • 启动Rabbitmq
/etc/init.d/rabbitmq-server start && chkconfig rabbitmq-server on
  • 查看帮助
rabbitmqctl --help | less
rabbitmqctl add_user devops password
rabbitmqctl list_users
rabbitmqctl change_password devops strongpassword
rabbitmqctl set_user_tags devops administrator
rabbitmqctl delete_user devops
  • 使用rabbitmq,添加虚拟主机
rabbitmqctl add_vhost /aniu_vhost
  • 查看虚拟主机
rabbitmqctl list_vhosts
rabbitmqctl delete_vhost /aniu_vhost
  • 给虚拟主机的用户授权
# rabbitmqctl set_permissions [-p vhost] [user] [permission ⇒ (modify) (write) (read)]
rabbitmqctl set_permissions -p /aniu_vhost devops ".*" ".*" ".*"
  • 查看虚拟主机权限
rabbitmqctl list_permissions -p /aniu_vhost
rabbitmqctl list_user_permissions devops
rabbitmqctl clear_permissions -p /aniu_vhost devops

RabbitMQ:管理和监测

参考链接
http://www.jb51.cc/article/p-bynekepo-qq.html
http://www.rabbitmq.com/admin-guide.html

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native