RabbitMQ搭建单机及集群
1,基本环境配置 hosts 文件 免密登录
2,访问官网 https://www.rabbitmq.com/download.html
3,
4,安装依赖
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
5,yum install erlang
6,安装erlang rpm -ihv erlang-18.1-1.el6.x86_64.rpm
7,将刚才下载的rabbitmq包上传 rpm -ihv rabbitmq-server-3.6.12-1.el6.noarch.rpm
8,安装 socat 否则会报这个错误 yum install -y socat
9,启动 rabbitmq rabbitmq-server 如下图表示成功
10 创建账号密码 admin admin
[root@node1~]# rabbitmqctl add_user admin admin
Creating user "admin"
11,将账号赋予管理员权限
[root@node1 ~]# rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator]
12,设置权限
[root@node1 ~]# rabbitmqctl set_permissions -p '/' admin '.' '.' '.'
Setting permissions for user "admin" in vhost "/"
13 启用web管理插件
rabbitmq-plugins enable rabbitmq_management
14 查看状态如图
15 完成 通过web页面观察rabbitmq的status,端口号是15672,例如http://ip:15672
如有不足之处请多指教