centos7.4安装RabbitMq(3.6.10版本)

1、查看下系统版本

[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 

2、安装socat

yum -y install socat

3、然后安装erlang

$ wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
$ rpm-ivh erlang-19.0.4-1.el7.centos.x86_64.rpm

4、安装rabbitMq

$ wget  http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10-1.el7.noarch.rpm
$ rpm -ivhrabbitmq-server-3.6.10-1.el7.noarch.rpm

5、启动、关闭和重启rabbitMq

systemctl start rabbitmq-server
systemctl stop rabbitmq-server
systemctl restart rabbitmq-server

6、启动后台插件 #浏览器访问:IP地址:15672

rabbitmq-plugins enable rabbitmq_management #浏览器访问:IP地址:15672

7、创建rabbitmq用户和密码以及授权

$ rabbitmqctl add_user admin admin    # 创建用户admin,密码也是admin
$ rabbitmqctl list_users		# 查看用户列表
$ rabbitmqctl set_user_tags admin administrator		# 设置admin用户为administrator角色
$ rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"		# 设置admin用户权限
$ rabbitmqctl list_user_permissions admin	# 查看admin用户权限

8、centos7防火墙打开与关闭参考链接
https://www.cnblogs.com/heqiuyong/p/10460150.html

9、rabbitMq和erlang百度网盘下载

erlang链接:https://pan.baidu.com/s/1RRhiz_ou9L9RbGJgxyCk5w 
提取码:2u1a 
rabbitMq链接:https://pan.baidu.com/s/1a68Tvp2haZNn05QeUhohnA 
提取码:y3ai

你可能感兴趣的:(linux)