Skip to content

Commit 1baa2b1

Browse files
committed
2018-01-28 补充监控相关命令
1 parent cd506ba commit 1baa2b1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

monitor.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,24 @@ Timing buffered disk reads: 806 MB in 3.00 seconds = 268.52 MB/sec
9696
```
9797

9898

99+
## 网络监控
100+
101+
- 安装 iftop(需要有 EPEL 源):`yum install -y iftop`
102+
- 如果没有 EPEL 源:`yum install -y epel-release`
103+
- 常用命令:
104+
- `iftop`:默认是监控第一块网卡的流量
105+
- `iftop -i eth1`:监控eth1
106+
- `iftop -n`:直接显示IP, 不进行DNS反解析
107+
- `iftop -N`:直接显示连接埠编号, 不显示服务名称
108+
- `iftop -F 192.168.1.0/24 or 192.168.1.0/255.255.255.0`:显示某个网段进出封包流量
109+
99110

100111
## 参考资料
101112

102113
- <http://man.linuxde.net/dd>
103114
- <https://linux.cn/article-6104-1.html>
115+
- <http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858923.html>
116+
- <http://coolnull.com/3649.html>
104117

105118

106119

0 commit comments

Comments
 (0)