1 Star 0 Fork 197

song/monitor-rtsp-hls

forked from rancedxk/monitor-rtsp-hls 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
stop.bat 609 Bytes
Copy Edit Raw Blame History
rancedxk authored 2021-01-21 11:36 . no commit message
@echo off
set url1="%~dp0\third\nginx\nginx.exe"
set url2="%~dp0\third\ffmpeg\ffmpeg.exe"
echo 本程序用来手动关闭nginx.exe进程和ffmpeg.exe进程,并不会关闭hls服务,所以一旦关闭nginx.exe后,hls服务将无法正常访问,需要用户手动关闭start.bat窗口!
set /p var="请选择y/n:"
if /i "%var%"=="y" (
for /f "tokens=1,2" %%a in ('"wmic process where name="nginx.exe" get processid,executablepath| findstr /C:%url1%"') do (
taskkill /f /pid %%b
)
for /f "tokens=1,2" %%a in ('"wmic process where name="ffmpeg.exe" get processid,executablepath| findstr /C:%url2%"') do (
taskkill /f /pid %%b
)
)
pause
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/keras/monitor-rtsp-hls.git
git@gitee.com:keras/monitor-rtsp-hls.git
keras
monitor-rtsp-hls
monitor-rtsp-hls
master

Search

0d507c66 1850385 C8b1a773 1850385