first commit
This commit is contained in:
26
stop.bat
Normal file
26
stop.bat
Normal file
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
chcp 65001 >nul 2>&1
|
||||
echo 正在停止自动签名系统...
|
||||
|
||||
taskkill /f /im python.exe /fi "WINDOWTITLE eq 自动签名系统*" >nul 2>&1
|
||||
|
||||
for /f "tokens=5" %%a in ('netstat -aon ^| findstr ":5001 " ^| findstr "LISTENING"') do (
|
||||
taskkill /f /pid %%a >nul 2>&1
|
||||
)
|
||||
|
||||
cd /d "%~dp0"
|
||||
set MYSQL_HOME=%~dp0mysql
|
||||
|
||||
if exist "%MYSQL_HOME%\bin\mysqladmin.exe" (
|
||||
echo 正在关闭 MySQL...
|
||||
"%MYSQL_HOME%\bin\mysqladmin.exe" -u root --port=33366 shutdown 2>nul
|
||||
if !errorlevel! equ 0 (
|
||||
echo MySQL 已关闭
|
||||
) else (
|
||||
echo MySQL 关闭失败或未运行
|
||||
)
|
||||
)
|
||||
|
||||
echo 服务已停止。
|
||||
timeout /t 3 /nul
|
||||
Reference in New Issue
Block a user