This action will force synchronization from smallchill/SpringBlade, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#!/bin/bash#使用说明,用来提示输入参数usage() {echo "Usage: sh 执行脚本.sh [port|mount|base|modules|stop|rm|rmiNoneTag]"exit 1}#开启所需端口port(){firewall-cmd --add-port=88/tcp --permanentfirewall-cmd --add-port=8000/tcp --permanentfirewall-cmd --add-port=8848/tcp --permanentfirewall-cmd --add-port=9848/tcp --permanentfirewall-cmd --add-port=9849/tcp --permanentfirewall-cmd --add-port=8858/tcp --permanentfirewall-cmd --add-port=3306/tcp --permanentfirewall-cmd --add-port=3379/tcp --permanentfirewall-cmd --add-port=7002/tcp --permanentfirewall-cmd --add-port=9411/tcp --permanentfirewall-cmd --add-port=18000/tcp --permanentservice firewalld restart}##放置挂载文件mount(){if test ! -f "/docker/nginx/api/nginx.conf" ;thenmkdir -p /docker/nginx/apicp nginx/api/nginx.conf /docker/nginx/api/nginx.conffiif test ! -f "/docker/nginx/web/nginx.conf" ;thenmkdir -p /docker/nginx/webcp nginx/web/nginx.conf /docker/nginx/web/nginx.confcp -r nginx/web/html /docker/nginx/web/htmlfiif test ! -f "/docker/nacos/init.d/custom.properties" ;thenmkdir -p /docker/nacos/init.dcp nacos/init.d/custom.properties /docker/nacos/init.d/custom.propertiesfi}#启动基础模块base(){docker-compose up -d nacos sentinel web-nginx blade-nginx blade-redis}#启动程序模块modules(){docker-compose up -d blade-gateway1 blade-gateway2 blade-admin blade-swagger blade-auth1 blade-auth2 blade-user blade-desk blade-system blade-log blade-report blade-develop}#关闭所有模块stop(){docker-compose stop}#删除所有模块rm(){docker-compose rm}#删除Tag为空的镜像rmiNoneTag(){docker images|grep none|awk '{print 3ドル}'|xargs docker rmi -f}#根据输入参数,选择执行对应方法,不输入则执行使用说明case "1ドル" in"port")port;;"mount")mount;;"base")base;;"modules")modules;;"stop")stop;;"rm")rm;;"rmiNoneTag")rmiNoneTag;;*)usage;;esac
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。