1. vi /etc/sysctl.conf  
  2. net.ipv4.tcp_syncookies = 1  
  3. net.ipv4.tcp_tw_reuse=1 #让TIME_WAIT状态可以重用,这样即使TIME_WAIT占满了所有端口,也不会拒绝新的请求造成障碍 默认是0  
  4. net.ipv4.tcp_tw_recycle=1 #让TIME_WAIT尽快回收 默认0  
  5. net.ipv4.tcp_fin_timeout=30  
  6. /sbin/sysctl -p 让修改生效  

相关文章:

  • 2022-02-23
  • 2022-12-23
  • 2021-12-27
  • 2021-10-29
  • 2021-08-19
  • 2022-12-23
  • 2021-05-26
  • 2021-12-12
猜你喜欢
  • 2021-12-27
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
相关资源
相似解决方案