rabbitmq

1、将erlang、rabbitmq包上传

2、执行

  • rpm -ivh 包名

3、设置配置文件:

  • cp /usr/share/doc/rabbitmq-server-3.4.1/rabbitmq.config.example /etc/rabbitmq/
  • mv rabbitmq.config.example rabbitmq.config
  • service rabbitmq-server restart

4、开启 web界面管理工具

rabbitmq-plugins enable rabbitmq_management

5、用户管理

  • rabbitmqctl add_user {用户名} {密码}
  • rabbitmqctl set_user_tags {用户名} {角色}
  • 四个角色: [administrator|monitoring|policymakermanagement]
  • rabbitmqctl list_users
  • rabbitmqctl delete_user Username

6、用户权限

  • rabbitmqctl set_permissions -p VHostPath User ConfP WriteP ReadP
  • rabbitmqctl list_permissions [-p VHostPath]
  • rabbitmqctl list_user_permissions User
  • rabbitmqctl clear_permissions [-p VHostPath] User

相关推荐