> For the complete documentation index, see [llms.txt](https://stb11816.gitbook.io/python_note/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stb11816.gitbook.io/python_note/web-framework/jian-cha-port-zhan-yong.md).

# 檢查Port

在cmd中輸入想檢查的port(ex.80)

```
C:\Users\Administrator>  netstat -nao |find "0.0.0.0:80"
```

如果沒有被占用則不會回傳東西

如果port有被工作占用，則會回傳工作代號，也就是Listening對象，再根據代號搜尋(ex.87)

```
C:\Users\Administrator>  tasklist /fi "pid eq 4"
```

就可得知哪個工作再用惹

參考來源:

<http://blog.xuite.net/cadmus.lin/yo/43386562-【系】如何查詢哪個程式佔用了指定Port>
