cat >> /etc/security/limits.conf<<-EOF * soft nofile 65535 * hard nofile 65535 * soft core unlimited EOF ##kernel optimize cat >> /etc/sysctl.conf <<EOF fs.file-max = 999999 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_syn_retries = 1 net.ipv4.tcp_synack_retries = 1 net.ipv4.tcp_keepalive_time = 600 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_max_tw_buckets = 5000 net.ipv4.ip_local_port_range = 1024 65500 net.ipv4.tcp_max_syn_backlog = 4096 net.core.netdev_max_backlog = 16384 net.core.somaxconn = 16384 net.ipv4.tcp_max_orphans =16384 net.ipv4.tcp_rmem = 4096 32768 262142 net.ipv4.tcp_wmem = 4096 32768 262142 vm.swappiness = 10 EOF sysctl –p
相关文章
- 11-11《大型网站技术架构演进与性能优化》——第四章:全球化下的网站演进:全球部署方案
- 11-11《大型网站技术架构演进与性能优化》——第七章:链路优化:大秒系统的极致优化思路
- 11-11sql2005性能优化(在32位系统上突破2G内存使用量的方法) .
- 11-11Centos 7.x 系统基础优化
- 11-11CentOS 6.3下部署LVS(NAT)+keepalived实现高性能高可用负载均衡
- 11-11操作系统性能分析与优化V1.0
- 11-11Centos7.x 新装系统优化
- 11-11Centos7部署PXE+Kickstart 实现批量安装操作系统
- 11-11HBase学习笔记——基于HBase的日志系统的性能优化
- 11-11CentOS 6.5安全加固及性能优化