---
title: "netstat命令查看端口是否占用 "
author: "kyh8408"
date: "2012-04-13T11:22:06Z"
tags: []
categories: ["操作系统"]
slug: "netstat"
draft: false
lastmod: "2012-04-13T11:22:06Z"
id: 1485082
url: "https://kyh8408.iteye.com/blog/1485082"
---

**Windows:**

       C:&gt; netstat -ano

可以查出pid

 

**AIX：**

    #netstat –Aan | grep 8083

   # rmsock f100060000484b98 tcpcb

 

**Linux：**

   #netstat -anp | grep 8083

   # ps -ef | grep pid