1.查看当前系统中生效的所有参数
sysctl -a
2.统计处于TIME_WAIT状态的TCP连接数
netstat -ant|grep TIME_WAIT|wc -l
3.统计TCP连接数
netstat -anp |grep tcp |wc -l
4.统计CLOSE_WAIT连接数
netstat -atn|grep CLOSE_WAIT|wc -l
5.查看TIME_WAIT状态的连接数量
netstat -n | awk '/^tcp/ {++y[$NF]} END {for(w in y) print w, y[w]}'
6.查看系统收发包情况
netstat -s | grep reject
7.查看SYN包丢弃情况
netstat -s | grep -i listen

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2022-01-14
  • 2022-01-05
  • 2021-09-28
  • 2021-05-22
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
相关资源
相似解决方案