修改linux 系统tcp wait_time 方法
1、vim /etc/sysctl.conf 中添加
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_timestamps = 1
2、执行命令 sysctl -p 使配置文件立刻生效
【无标题】
最新推荐文章于 2024-02-17 12:36:47 发布