windows:
----------------jar--------------------------------
@echo off
start java -jar D:\mdm\server\manage-admin\target\manage-admin-1.0-SNAPSHOT.jar
-----------------------------关闭-------------------
@echo off
set port=8081
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do taskkill /pid %%m -t -f
exit
taskkill -f -t -im javaw.exe
-----redis-----------------------------------------
@echo off
title redis-server
set ENV_HOME="D:\Redis-x64-3.2.100"
D:
cd %ENV_HOME%
redis-server redis.windows.conf
----------------------------------------------
网友评论