Erlang和RabbitMQ的版本匹配
https://www.rabbitmq.com/which-erlang.html
安装Erlang
1.将Erlang包上传到centOS上
链接:https://pan.baidu.com/s/1le2zZejCOUaWjA-SuoSYSA 提取码:2smq
erlang的包地址 https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/
2.安装Erlang包
yum install 包名
3.验证
erl -v
出现“Erlang/OTP 23 [erts-11.0] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]”证明安装成功
安装Socat
yum install socat
安装RabbitMQ
1.将rabbitMQ包上传到centOS上
链接:https://pan.baidu.com/s/1c4jEKBzyF9YBGjBy5Lum2Q 提取码:warz
rabbit的包地址 https://www.rabbitmq.com/download.html
2.安装rabblitMQ包
yum install 包名
3.验证
systemctl start rabbitmq-server.service
systemctl status rabbitmq-server.service
4.开机后自动重启
systemctl enable rabbitmq-server.service
5.关闭服务
systemctl stop rabbitmq-server.service
开启图形化管理界面
rabbitmq-plugins enable rabbitmq_management
通过Ip:15672访问
localhost默认账号密码为 guest
如果是远程访问 比如阿里云,腾讯云等需要新建访问用户并授权
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
用户级别权限等级依次递减
命令小结