rabbit安装脚本-------不同版本只需下载最新软件
#安装依赖软件包以及命令
yum -y install gcc* make ncurses-devel libxslt xsltproc unzip nc xmlto socat
#####下载erlang
wget https://github.com/rabbitmq/erlang-rpm/releases/download/v22.3.4.16/erlang-22.3.4.16-1.el7.x86_64.rpm
#########安装erlang java
yum localinstall erlang-22.3.4.16-1.el7.x86_64.rpm -y
yum install java-1.8.0-openjdk* -y
#安装rabbitmq rpm包:
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.12/rabbitmq-server-3.8.12-1.el7.noarch.rpm
########### 导入签名
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
#### 8版本签名
rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
yum install rabbitmq-server-3.8.12-1.el7.noarch.rpm -y
启动rabbitmq,并验证启动情况
rabbitmq-server --detached &ps aux |grep rabbitmq
#服务的方式启动
service rabbitmq-server start
systemctl enable rabbitmq-server.service
#开启管理界面
rabbitmq-plugins enable rabbitmq_management
#设置账号
rabbitmqctl add_user admin admin123456
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"