首页 > 其他 > 详细

centos6 配置

时间:2018-10-21 16:44:09      阅读:208      评论:0      收藏:0      [点我收藏+]

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 配置

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!