AIGC/start_redis.bat
2026-02-27 14:37:19 +08:00

29 lines
877 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo 正在启动 Redis 服务...
echo.
REM 检查常见的 Redis 安装路径
if exist "C:\Program Files\Redis\redis-server.exe" (
echo 找到 Redis正在启动...
"C:\Program Files\Redis\redis-server.exe"
) else if exist "C:\Redis\redis-server.exe" (
echo 找到 Redis正在启动...
"C:\Redis\redis-server.exe"
) else if exist "%USERPROFILE%\Redis\redis-server.exe" (
echo 找到 Redis正在启动...
"%USERPROFILE%\Redis\redis-server.exe"
) else (
echo 错误:未找到 Redis 安装目录
echo.
echo 请确保 Redis 已安装,或手动指定 Redis 路径
echo 常见安装路径:
echo - C:\Program Files\Redis\
echo - C:\Redis\
echo - %USERPROFILE%\Redis\
echo.
echo 如果未安装 Redis请访问
echo https://github.com/tporadowski/redis/releases
echo.
pause
)