---
title: "window查看占用端口的程序"
author: "meng702"
date: "2011-04-11T09:34:34Z"
tags: []
categories: ["企业架构"]
slug: "window"
draft: false
lastmod: "2011-04-22T09:01:27Z"
id: 996605
url: "https://meng702.iteye.com/blog/996605"
---

1、查询本机所有端口信息

netstat -ano

2、查询结果中过滤某个端口

netstat -aon|findstr "8080"

3、查看进程信息

  tasklist|findstr "8080" 

4、结束进程

      tskill 8080

 

查看进程的pid: tasklist

根据进程号查询进程：tasklist |findstr "3208"