From 2c2dad24d59b37df254d1c003d6c3e1119b51d6c Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期三, 11 八月 2021 14:28:05 +0800 Subject: [PATCH] update 更新 阿里云 maven源 新地址 --- docker/deploy.sh | 37 ++++++++++++++++++++++++++----------- 1 files changed, 26 insertions(+), 11 deletions(-) diff --git a/docker/deploy.sh b/docker/deploy.sh index bbfdaf4..79fb9ae 100644 --- a/docker/deploy.sh +++ b/docker/deploy.sh @@ -2,39 +2,51 @@ #浣跨敤璇存槑锛岀敤鏉ユ彁绀鸿緭鍏ュ弬鏁� usage() { - echo "Usage: sh 鎵ц鑴氭湰.sh [port|mount|base|start|stop|stopall|rm|rmiNoneTag]" + echo "Usage: sh 鎵ц鑴氭湰.sh [port|mount|monitor|base|start|stop|stopall|rm|rmiNoneTag]" exit 1 } -#寮�鍚墍闇�绔彛 +#寮�鍚墍闇�绔彛(鐢熶骇鐜涓嶆帹鑽愬紑鍚�) port(){ + # mysql 绔彛 firewall-cmd --add-port=3306/tcp --permanent + # redis 绔彛 firewall-cmd --add-port=6379/tcp --permanent + # minio api 绔彛 + firewall-cmd --add-port=9000/tcp --permanent + # minio 鎺у埗鍙扮鍙� + firewall-cmd --add-port=9001/tcp --permanent + # 閲嶅惎闃茬伀澧� service firewalld restart } ##鏀剧疆鎸傝浇鏂囦欢 mount(){ #鎸傝浇閰嶇疆鏂囦欢 - if test ! -f "/docker/nginx/nginx.conf" ;then - mkdir -p /docker/nginx - cp nginx/nginx.conf /docker/nginx/nginx.conf + if test ! -f "/docker/nginx/conf/nginx.conf" ;then + mkdir -p /docker/nginx/conf + cp nginx/nginx.conf /docker/nginx/conf/nginx.conf fi } #鍚姩鍩虹妯″潡 base(){ - docker-compose up -d mysql nginx-web redis + docker-compose up -d mysql nginx-web redis minio +} + +#鍚姩鍩虹妯″潡 +monitor(){ + docker-compose up -d ruoyi-monitor-admin } #鍚姩绋嬪簭妯″潡 start(){ - docker-compose up -d ruoyi-admin + docker-compose up -d ruoyi-server1 ruoyi-server2 } #鍋滄绋嬪簭妯″潡 stop(){ - docker-compose stop ruoyi-admin + docker-compose stop ruoyi-server1 ruoyi-server2 } #鍏抽棴鎵�鏈夋ā鍧� @@ -63,14 +75,17 @@ "base") base ;; +"monitor") + monitor +;; "start") - modules + start ;; "stop") - stopmodules + stop ;; "stopall") - stop + stopall ;; "rm") rm -- Gitblit v1.9.3