From 66de4ce4c4b915cbe3d61a60bc1b34f70647370f Mon Sep 17 00:00:00 2001 From: yuejiajun <1530620364@qq.com> Date: Sun, 17 Aug 2025 12:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E6=9E=84=E5=BB=BA=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96bat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/simulation/Resources/simulation.bat | 7 +++--- server/simulation/resources-initialize.bat | 26 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 server/simulation/resources-initialize.bat diff --git a/server/simulation/Resources/simulation.bat b/server/simulation/Resources/simulation.bat index c4901bd..3e13e2c 100644 --- a/server/simulation/Resources/simulation.bat +++ b/server/simulation/Resources/simulation.bat @@ -3,7 +3,6 @@ chcp 65001 >nul title Simulation Quick Start if exist "%SIMULATION_MANAGE_BIN%" ( - :: start "Simulation Server" cmd /k "chcp 65001 && title Simulation Server && java -Dserver.port=28280 -Dspring.profiles.active=test,mysql,redis,rocketmq,springdoc --enable-preview -Dproject.database-ip=127.0.0.1 -Dproject.redis-url=127.0.0.1 -Djasypt.encryptor.password=jwnwfA1pIoLihBptgbR8S6UEEAfGurjG -Dproject.rocketmq-url=127.0.0.1:8081 -Dproject.minio-url=http://127.0.0.1:9000 -Dproject.eval-service-url=http://127.0.0.1:28480/evaluation/samples/receiveSync -jar %SIMULATION_MANAGE_BIN%" start "Simulation Server" cmd /k "chcp 65001 && title Simulation Server && java -Dspring.profiles.active=test,mysql,redis,rocketmq,springdoc %SIMULATION_VM_PARAMS% -jar %SIMULATION_MANAGE_BIN%" ) @@ -12,8 +11,8 @@ if exist "%SIMULATION_MANAGE_BIN%" ( start "Simulation Website" cmd /k "title Simulation Website && simulation-web.exe -c conf/web.conf" ) -echo 实验服务已启动: -echo - SimulationServer (端口: 28280) -echo - SimulationWebsite (端口: 18280) +echo Simulation: +echo - SimulationServer (Port: 28280) +echo - SimulationWebsite (Port: 18280) pause \ No newline at end of file diff --git a/server/simulation/resources-initialize.bat b/server/simulation/resources-initialize.bat new file mode 100644 index 0000000..1cce8b0 --- /dev/null +++ b/server/simulation/resources-initialize.bat @@ -0,0 +1,26 @@ +@echo off +setlocal enabledelayedexpansion +chcp 65001 >nul +title Initialization + +set "BASE_PATH=Resources/" + +:: server 启动jar +:: script 或数据库初始化脚本、或数据库补丁脚本 +:: web Nginx程序与代理配置 +:: dist 服务Web UI + +echo [INFO] 正在创建 【实验】 初始化构建安装包目录结构 +for %%f in ( + "server" + "script/simulation" + "web" + "dist" +) do ( + echo [INFO] 创建: %%~f + mkdir "%BASE_PATH%/%%~f" + echo. +) + +pause +endlocal \ No newline at end of file