---
title: "杀死占用某端口的进程windows 和 linux"
author: "exampleenglish"
date: "2013-05-29T18:39:51Z"
tags: []
categories: ["操作系统"]
slug: "windows-linux"
draft: false
lastmod: "2013-05-29T18:39:51Z"
id: 1879610
url: "https://exampleenglish.iteye.com/blog/1879610"
---

windows下：
netstat -nao //列出所有进程以及其占用的端口

记住进程号
taskkill -pid 进程号 -f  //强制关闭某个进程

linux下：
netstat -naop
kill 进程号 -f