Browse Source

fix bug

master
xiaoz 4 years ago
parent
commit
bd455d4c09
  1. 12
      install_rabbitmq.sh

12
install_rabbitmq.sh

@ -16,7 +16,7 @@ function depend(){
function install_rpm(){ function install_rpm(){
wget https://github.com/rabbitmq/erlang-rpm/releases/download/v23.1.5/erlang-23.1.5-1.el7.x86_64.rpm wget https://github.com/rabbitmq/erlang-rpm/releases/download/v23.1.5/erlang-23.1.5-1.el7.x86_64.rpm
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.9/rabbitmq-server-3.8.9-1.el7.noarch.rpm wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.9/rabbitmq-server-3.8.9-1.el7.noarch.rpm
rpm -ivh v23.1.5/erlang-23.1.5-1.el7.x86_64.rpm rpm -ivh erlang-23.1.5-1.el7.x86_64.rpm
rpm -ivh rabbitmq-server-3.8.9-1.el7.noarch.rpm rpm -ivh rabbitmq-server-3.8.9-1.el7.noarch.rpm
} }
@ -35,8 +35,16 @@ function pass_firewalld(){
firewall-cmd --reload firewall-cmd --reload
} }
#清理工作
function clean_work(){
rm -rf erlang-23.1.5-1.el7.x86_64.rpm
rm -rf rabbitmq-server-3.8.9-1.el7.noarch.rpm
rm -rf install_rabbitmq.sh
}
#执行函数进行安装 #执行函数进行安装
depend depend
install_rpm install_rpm
instal_plugins instal_plugins
pass_firewalld pass_firewalld
clean_work
Loading…
Cancel
Save