码迷,mamicode.com
首页 > 系统相关 > 详细

linux的sysctl基本配置

时间:2016-11-28 15:24:01      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:lin   ret   oca   max   bucket   dev   linux   范围   local   

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# me write param
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_fin_timeout=30
#net.ipv4.tcp_window_scaling = 0

net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_orphan_retries=3
#net.ipv4.tcp_syn_retries=2
#net.ipv4.tcp_max_syn_backlog = 20480
#net.ipv4.tcp_max_tw_buckets = 20000
net.ipv4.ip_local_port_range = 10240 65000 #端口范围
#net.ipv4.tcp_keepalive_probes=5
#net.ipv4.tcp_timestamps=0

# me
#net.core.netdev_max_backlog = 32768
#net.ipv4.netfilter.ip_conntrack_max = 655360
#net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = 180

linux的sysctl基本配置

标签:lin   ret   oca   max   bucket   dev   linux   范围   local   

原文地址:http://www.cnblogs.com/itfenqing/p/6109113.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!