---
title: "在windows上如何关闭运行在特定端口的进程？"
author: "rogerhunt"
date: "2011-09-26T18:19:39Z"
tags: []
categories: ["操作系统"]
slug: "windows"
draft: false
lastmod: "2011-09-26T18:19:39Z"
id: 1180889
url: "https://rogerhunt.iteye.com/blog/1180889"
---

我在eclipse跑不了tomcat。提示说有另一个进程占用了该端口。
但是我不知道是什么进程，怎么用windows的服务管理停掉这个进程。
以下是怎么寻找和关闭该进程的方法。

netstat -a -o -n 该命令将会陈列network list， 查看PID（例如 8080）
寻找PID 8080是什么进程  输入taslist tasklist /FI “PID eq 8080″
最后关闭该进程 taskkill /F /PID 1104