CentOS 服务器性能调优实操指南
一 基线评估与监控
二 内核与虚拟内存调优
* soft nofile 65535
* hard nofile 65535
三 存储与文件系统优化
/dev/sda1 / ext4 defaults,noatime,nodiratime 0 0
四 网络与连接优化
net.core.somaxconn = 65535
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.ip_local_port_range = 1024 65535
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_syncookies = 1
net.core.netdev_max_backlog = 2000
五 服务与系统管理优化