更新 'linux基础/TCP-time-wait-bucket-table-overflow.md'
This commit is contained in:
parent
be69bd3855
commit
fc08238dbb
1 changed files with 3 additions and 1 deletions
|
@ -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 #快速回收
|
||||
net.ipv4.tcp_tw_recycle = 0 #快速回收
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue