---
title: "windows中有用的查找端口占用的命令"
author: "chainhou"
date: "2013-07-19T15:43:49Z"
tags: []
categories: ["操作系统"]
slug: "windows"
draft: false
lastmod: "2013-07-19T15:43:49Z"
id: 1910214
url: "https://chainhou.iteye.com/blog/1910214"
---

在windows中可以使用如下命令，查看端口昌被哪个程序占用。


```java
C:\Users\ho>netstat -aon | findstr "8080"
  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       7528
  TCP    [::]:8080              [::]:0                 LISTENING       7528

C:\Users\ho>tasklist | findstr "7528"
java.exe                      7528 Console                    1    205,960 K
```