当前所在位置:珠峰网资料 >> 计算机 >> 软件水平 >> 正文
内核参数sysctl.conf的优化
发布时间:2010/7/19 11:52:09 来源:城市学习网 编辑:ziteng
  /etc/sysctl.conf
  net.ipv4.ip_local_port_range = 1024 65536
  net.core.rmem_max=16777216
  net.core.wmem_max=16777216
  net.ipv4.tcp_rmem=4096 87380 16777216
  net.ipv4.tcp_wmem=4096 65536 16777216
  net.ipv4.tcp_fin_timeout = 15
  net.ipv4.tcp_keepalive_time = 600
  net.ipv4.tcp_tw_recycle = 1
  net.core.netdev_max_backlog = 30000
  net.ipv4.tcp_no_metrics_save=1
  net.core.somaxconn = 262144
  net.ipv4.tcp_syncookies = 1
  net.ipv4.tcp_max_orphans = 8000
  net.ipv4.tcp_max_syn_backlog = 8000
  net.ipv4.tcp_synack_retries = 2
  net.ipv4.tcp_syn_retries = 2
  运行sysctl -p,使配置生效
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved