From 37b4cf90967bf1ff1128d72f8b70338eeeec0e1b Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 31 Dec 2024 09:07:35 +0800 Subject: [PATCH] script --- scripts_244/kill-ps.sh | 18 +++++++------- scripts_244/material_bootstrap.yml | 35 ---------------------------- scripts_244/pipeline.sh | 2 +- scripts_244/smart_site_bootstrap.yml | 2 +- scripts_244/stopServices.sh | 4 ++-- 5 files changed, 13 insertions(+), 48 deletions(-) delete mode 100644 scripts_244/material_bootstrap.yml diff --git a/scripts_244/kill-ps.sh b/scripts_244/kill-ps.sh index ff5326c..2a021be 100644 --- a/scripts_244/kill-ps.sh +++ b/scripts_244/kill-ps.sh @@ -1,10 +1,10 @@ -AUTH_RESOURCE_NAME=bonus-auth-24.10.0-SNAPSHOT-material-mall.jar -GATEWAY_RESOURCE_NAME=bonus-gateway-24.10.0-SNAPSHOT-material-mall.jar -SYS_RESOURCE_NAME=bonus-system-24.10.0-SNAPSHOT-material-mall.jar -JOB_RESOURCE_NAME=bonus-job-24.10.0-SNAPSHOT-material-mall.jar -FILE_RESOURCE_NAME=bonus-file-24.10.0-SNAPSHOT-material-mall.jar -MONITOR_RESOURCE_NAME=bonus-visual-monitor-24.10.0-SNAPSHOT-material-mall.jar -MATERIAL_RESOURCE_NAME=bonus-material-mall.jar +AUTH_RESOURCE_NAME=bonus-auth-24.10.0-SNAPSHOT-smart-site.jar +GATEWAY_RESOURCE_NAME=bonus-gateway-24.10.0-SNAPSHOT-smart-site.jar +SYS_RESOURCE_NAME=bonus-system-24.10.0-SNAPSHOT-smart-site.jar +JOB_RESOURCE_NAME=bonus-job-24.10.0-SNAPSHOT-smart-site.jar +FILE_RESOURCE_NAME=bonus-file-24.10.0-SNAPSHOT-smart-site.jar +MONITOR_RESOURCE_NAME=bonus-visual-monitor-24.10.0-SNAPSHOT-smart-site.jar +SMART_SITE_RESOURCE_NAME=bonus-smart-site.jar tpid=`ps -ef|grep $AUTH_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` @@ -97,13 +97,13 @@ echo 'Stop Success!' fi -tpid=`ps -ef|grep $MATERIAL_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` +tpid=`ps -ef|grep $SMART_SITE_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` if [ ${tpid} ]; then echo 'Stop Process...' kill -15 $tpid fi sleep 5 -tpid=`ps -ef|grep $MATERIAL_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` +tpid=`ps -ef|grep $SMART_SITE_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` if [ ${tpid} ]; then echo 'Kill Process!' kill -9 $tpid diff --git a/scripts_244/material_bootstrap.yml b/scripts_244/material_bootstrap.yml deleted file mode 100644 index 1fceb85..0000000 --- a/scripts_244/material_bootstrap.yml +++ /dev/null @@ -1,35 +0,0 @@ -# Tomcat -server: - port: 18588 -# Spring -spring: - servlet: - multipart: - # 文件最大 - max-file-size: 20MB - # 设置总上传数据总大小 - max-request-size: 20MB - application: - # 应用名称 - name: bonus-material - profiles: - # 环境配置 - active: sgzb_bns_test - cloud: - nacos: - username: nacos - password: bonus@Admin123 - discovery: - # 服务注册地址 - server-addr: 192.168.0.244:8848 - namespace: sgzb_bns - config: - # 配置中心地址 - server-addr: 192.168.0.244:8848 - namespace: sgzb_bns - # 配置文件格式 - file-extension: yml - # 共享配置 - shared-configs: - - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} - diff --git a/scripts_244/pipeline.sh b/scripts_244/pipeline.sh index 703f10a..5480ef7 100644 --- a/scripts_244/pipeline.sh +++ b/scripts_244/pipeline.sh @@ -17,7 +17,7 @@ pipeline { doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: '']], submoduleCfg: [], - userRemoteConfigs: [[url: 'http://192.168.0.244:3000/bonus/Bonus-Cloud-Material.git']] + userRemoteConfigs: [[url: 'http://192.168.0.244:3000/bonus/Bonus-Cloud-Smart-Site.git']] ]) } } diff --git a/scripts_244/smart_site_bootstrap.yml b/scripts_244/smart_site_bootstrap.yml index 5f5725c..05ac9d9 100644 --- a/scripts_244/smart_site_bootstrap.yml +++ b/scripts_244/smart_site_bootstrap.yml @@ -11,7 +11,7 @@ spring: max-request-size: 20MB application: # 应用名称 - name: bonus-material-mall + name: bonus-smart-site profiles: # 环境配置 active: smart_site_test diff --git a/scripts_244/stopServices.sh b/scripts_244/stopServices.sh index c87ef24..8db2a92 100644 --- a/scripts_244/stopServices.sh +++ b/scripts_244/stopServices.sh @@ -1,6 +1,6 @@ -P_ID=$(pgrep -f BonusMaterialApplication) +P_ID=$(pgrep -f BonusSmartSiteApplication) if [ -z "$P_ID" ]; then - echo "BonusMaterialApplication is not running" + echo "BonusSmartSiteApplication is not running" else kill -9 "$P_ID" fi