Files
pricing_review/查8366端口.bat

18 lines
803 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
chcp 936 >nul
title 造价审核 - 端口检查(8366)
echo ============================================
echo 8366 端口监听情况(应只有一行 LISTENING)
echo ============================================
netstat -ano | findstr :8366 | findstr LISTENING
echo.
echo --- 上行最后一列 = PID(进程号),对应进程如下 ---
for /f "tokens=5" %%p in ('netstat -ano ^| findstr :8366 ^| findstr LISTENING') do tasklist /fi "PID eq %%p"
echo.
echo --- 全部 python 服务进程(正常应只有 1 个) ---
tasklist /fi "imagename eq python.exe" 2>nul | findstr /i python
echo.
echo 提示:出现两行 LISTENING = 双实例并存,请求会随机落到新旧代码。
echo 处理:结束所有 python.exe 后,重新用「启动造价审核.bat」启动。
pause