This website requires JavaScript.
Explore
Help
Register
Sign In
Kister
/
My-Notes
Watch
1
Star
0
Fork
0
You've already forked My-Notes
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
master
My-Notes
/
笔记
/
Linux
/
基础指令
/
netstat.md
T
Add File
New File
Upload File
Apply Patch
Kister
7422eb7346
日常更新linux笔记
2026-07-02 23:10:58 +08:00
237 B
Raw
Permalink
Blame
History
netstat [-anp] [| grep 端口号]
略过时,推荐使用ss(同参数)
作用:查看端口的占用情况
参数:
a:所有端口
n:以数字显示
p:显示进程PID和名称
示例:
netstat -anp | grep 80
Reference in New Issue
View Git Blame
Copy Permalink