HM-SPMS/installer/StopService.bat

28 lines
438 B
Batchfile
Raw Permalink Normal View History

@echo off
::保存当前脚本所在目录
set "scriptPath=%~dp0"
echo 脚本所在目录:%scriptPath%
cd /d "%scriptPath%"
::关闭influxdb
cd "..\database\InfluxDB"
call RemoveService.bat
::关闭MySQL
cd /d "%scriptPath%"
cd "..\database\mysql"
call uninstall.bat
cd /d "%scriptPath%"
::关闭Nginx
cd "..\nginx"
call uninstall_nginx.bat
net stop net_keepalived
sc delete net_keepalived
echo %CD%
echo Uninstall Success!
pause