From bd455d4c0929b5b40e28edf184860445540f3f20 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Fri, 11 Dec 2020 03:13:47 +0000 Subject: [PATCH] fix bug --- install_rabbitmq.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install_rabbitmq.sh b/install_rabbitmq.sh index 289d284..bda7b47 100644 --- a/install_rabbitmq.sh +++ b/install_rabbitmq.sh @@ -16,7 +16,7 @@ function depend(){ 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/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 } @@ -35,8 +35,16 @@ function pass_firewalld(){ 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 install_rpm instal_plugins -pass_firewalld \ No newline at end of file +pass_firewalld +clean_work \ No newline at end of file