系统资源监控
free : 观察内存使用情况
uname : 查阅系统与核心相关信息
-s:系统内核名称 -r:内核版本
uptime : 观察系统启动时间与负载
netstat :网络监察
vmstat : 侦测系统资源变化
iftop : 网络流量的监控
netsata:网络监控
netsata [选项]
-a:将目前系统上所有已经连接、监听等的数据都列出来
-t: 列出tcp网络包的内容
-u: udp网络包
-n: 以端口方式来显示
-l: 列出目前正在监听的服务
-p: 列出该网络服务的id(pid)
防火墙!!!
service iptable start
service iptable status
service iptable stop
service iptable restart
以上设置在重启前有效
永久关闭:chkconfig iptables off
永久开启:chkconfig iptable on
VMSTAT:侦测系统资源变化
将任务放置后台:
ctrl + z和&