Update netstat.md

This commit is contained in:
小弟调调™ 2018-07-04 19:44:06 +08:00 committed by GitHub
parent e7d75fc726
commit d61b2bc27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 174 additions and 168 deletions

View File

@ -135,6 +135,12 @@ netstat -ap | grep ssh
```
netstat -an | grep ':80'
```
**通过端口找进程ID**
```bash
netstat -anp|grep 8081 | grep LISTEN|awk '{printf $7}'|cut -d/ -f1
```
**显示网络接口列表**