doc: Update lsof.md (#466)

查看指定端口的占用
This commit is contained in:
asunrong 2023-02-10 10:28:29 +08:00 committed by GitHub
parent 29d9f9808d
commit c2d0b9de8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -156,5 +156,8 @@ lsof -i:9981 -P -t -sTCP:LISTEN
```shell
lsof $filename
```
查看端口占用
```shell
lsof -i:$port
```