guoyu/log/Windows快速测试Whisper.bat
2025-12-11 23:28:07 +08:00

44 lines
1.0 KiB
Batchfile
Raw 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
chcp 65001 >nul
echo ====================================
echo Whisper 服务快速测试工具
echo ====================================
echo.
echo [步骤 1] 检查端口 5001 是否被监听...
netstat -ano | findstr :5001
if %errorlevel% equ 0 (
echo ✓ 端口 5001 已被监听
) else (
echo × 端口 5001 未被监听
echo Whisper 服务可能未启动!
)
echo.
echo [步骤 2] 测试 HTTP 连接...
curl -s -o nul -w "HTTP状态码: %%{http_code}" http://localhost:5001/health
echo.
echo.
echo [步骤 3] 获取健康检查响应...
curl -s http://localhost:5001/health
echo.
echo.
echo [步骤 4] 检查 Python 进程...
tasklist | findstr /i python
if %errorlevel% equ 0 (
echo ✓ 找到 Python 进程
) else (
echo × 未找到 Python 进程
)
echo.
echo ====================================
echo 测试完成!
echo.
echo 如果所有测试都通过,说明 Whisper 服务正常运行
echo 如果测试失败,请查看 Whisper服务启动说明.txt
echo ====================================
pause