首页 > 技术文章 > Linux内核基础优化

dingkailinux 2018-06-16 18:16 原文

Linux内核基础优化

net.ipv4.ip_forward = 1  #开启网络转发
net.ipv4.conf.default.rp_filter = 0  #开启代理功能
net.ipv4.conf.all.rp_filter = 0    #开启代理功能
net.ipv4.conf.eth0.rp_filter = 0   #开启代理功能
net.ipv4.ip_local_port_range = 32768    60999  #限制本地开启的端口号
kernel.pid_max = 1000000  #本地进程数
net.ipv4.tcp_tw_reuse = 1  #有效减少TIME_WAIT数量
net.ipv4.tcp_tw_recycle = 1  #有效减少TIME_WAIT数量
net.ipv4.tcp_syncookies = 1   #减缓syn攻击

 为什么一定要凑够150字

推荐阅读