2025-08-19 18:15:31 +08:00

43 lines
930 B
Batchfile

@echo off
setlocal enabledelayedexpansion
chcp 65001 >nul
title Quick Start
set "SCRIPT_DIR=%~dp0"
cd /d "%SCRIPT_DIR%"
if exist "%SCRIPT_DIR%\io\minio-server.bat" (
echo.
echo [INFO] Starting MinIO...
cd "%SCRIPT_DIR%\io\"
start "MinIO Startup" /B cmd /c "minio-server.bat"
if errorlevel 1 (
echo [ERROR] MinIO start Failed.
pause && exit /b 1
)
)
if exist "%SCRIPT_DIR%\redis\redis-server.exe" (
echo.
echo [INFO] Starting Redis...
cd "%SCRIPT_DIR%\redis"
start "Redis Startup" /B cmd /c "redis-server.exe redis.conf"
if errorlevel 1 (
echo [ERROR] Redis start Failed.
pause && exit /b 1
)
)
if exist "%SCRIPT_DIR%\rocketmq\sbin\rocketmq.bat" (
echo.
echo [INFO] Starting RocketMQ...
cd "%SCRIPT_DIR%\rocketmq\sbin\"
start "RocketMQ Startup" /B cmd /c "rocketmq.bat"
if errorlevel 1 (
echo [ERROR] RocketMQ start Failed.
pause && exit /b 1
)
)
pause && exit /b 0