feat: add service start/stop scripts for Windows and Linux

This commit is contained in:
Your Name
2026-04-28 21:19:36 +08:00
parent e94c730def
commit 2459122c0e
7 changed files with 380 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
@echo off
chcp 65001 >nul 2>&1
title FTP Server - 查看状态
cd /d "%~dp0"
echo.
echo ================================
echo FTP Server 运行状态
echo ================================
echo.
tasklist /FI "IMAGENAME eq ftp-server.exe" 2>nul | find /i "ftp-server.exe" >nul
if %errorlevel%==0 (
echo 状态: 运行中
for /f "tokens=2" %%a in ('tasklist /FI "IMAGENAME eq ftp-server.exe" /NH 2^>nul') do (
echo PID: %%a
)
) else (
echo 状态: 未运行
)
echo.
echo Web 管理面板: http://localhost:8080
echo FTP 端口: 2121
echo.
pause