Skip to content

Commit f5aa85e

Browse files
author
zhang
committed
2019-04-30
1 parent c457bd2 commit f5aa85e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markdown-file/monitor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ TOTAL:(总的流量) 12.9GB 229Mb 190Mb 193Mb
576576
#### lsof
577577

578578
- 安装 lsof:`yum install -y lsof`
579-
- 查看 3316 端口是否有被使用:`lsof -i:3316`**有被使用会输出类似如下信息,如果没被使用会没有任何信息返回**
579+
- 查看 3316 端口是否有被使用(macOS 也适用)`lsof -i:3316`**有被使用会输出类似如下信息,如果没被使用会没有任何信息返回**
580580

581581
```
582582
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
@@ -596,7 +596,7 @@ docker-pr 13551 root 4u IPv6 2116824 0t0 TCP *:aicc-cmi (LISTEN)
596596
#### netstat
597597

598598
- 更多用法可以看:[netstat 的10个基本用法](https://linux.cn/article-2434-1.html)
599-
- 查看所有在用的端口:`netstat -ntlp`
599+
- 查看所有在用的端口(macOS 也适用)`netstat -ntlp`
600600

601601
```
602602
Active Internet connections (only servers)

0 commit comments

Comments
 (0)