安装erlang
安装erlang的前置脚本文件
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash |
安装erlang
yum install erlang |
检查版本号
[root@public-service ~]# erl |
安装rabbitmq
导入rabbitmq需要的key
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey |
安装rabbitmq的前置脚本文件
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash |
导入key
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc |
安装socat
yum -y install epel-release |
安装rabbitmq
rpm -ivh rabbitmq-server-3.8.5-1.el7.noarch.rpm |
启动
service rabbitmq-server start |
开启web管理页面插件
rabbitmq-plugins enable rabbitmq_management |
查看插件列表
rabbitmq-plugins list |
开启插件
rabbitmq-plugins enable rabbitmq_delayed_message_exchange |
创建用户授权
rabbitmqctl add_user liangjian liangjian360 |