diff --git a/linux基础/TCP-time-wait-bucket-table-overflow.md b/linux基础/TCP-time-wait-bucket-table-overflow.md index f17a39f..e5cd56b 100644 --- a/linux基础/TCP-time-wait-bucket-table-overflow.md +++ b/linux基础/TCP-time-wait-bucket-table-overflow.md @@ -1,3 +1,4 @@ +```bash net.ipv4.tcp_syncookies = 1 #开启SYN Cookies net.ipv4.ip_local_port_range = 1025 65534 # 端口 net.ipv4.tcp_max_tw_buckets = 5000 #系统同时保持TIME_WAIT套接字的最大数量 @@ -6,4 +7,5 @@ net.ipv4.tcp_keepalive_time = 1200 #keepalive启用时,发送keepalive的频度 net.ipv4.tcp_max_syn_backlog = 8192 #向外连接的端口范围 net.ipv4.tcp_timestamps = 1 net.ipv4.tcp_tw_reuse = 1 #开启重用 -net.ipv4.tcp_tw_recycle = 0 #快速回收 \ No newline at end of file +net.ipv4.tcp_tw_recycle = 0 #快速回收 +``` \ No newline at end of file