本文介绍了如何使用Windows批处理文件检查端口8086是否正在侦听的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要使用批处理文件检查进程是否正在运行以及正在使用的端口(8086和8085)是否处于侦听状态

Need to check if the process is running and the port that is being used(8086 and 8085) is in listening state, using a batch file

推荐答案

netstat /o /a | find /i "listening" | find ":8086" >nul 2>nul && (
   echo 8086 is open
) || (
  echo 8086 is Not open
)

这篇关于如何使用Windows批处理文件检查端口8086是否正在侦听的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 08:28