码迷,mamicode.com
首页 > 其他好文 > 详细

centos6 配置

时间:2018-10-21 16:55:34      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:配置   keepalive   tcp   win   sync   timestamp   sysctl   oca   local   

vim /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
重启生效


cat /proc/sys/fs/file-max

vim /etc/sysctl.conf
fs.file-max = 65536
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 3600
net.ipv4.ip_local_port_range = 1024 65000


centos6 配置

标签:配置   keepalive   tcp   win   sync   timestamp   sysctl   oca   local   

原文地址:https://www.cnblogs.com/wljcom/p/9825444.html

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