linux的sysctl基本配置
Posted 罗夏
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux的sysctl基本配置相关的知识,希望对你有一定的参考价值。
# 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基本配置的主要内容,如果未能解决你的问题,请参考以下文章