● Linux系统优化及性能调优
调整最大TCP连接数:
sysctl -w net.ipv4.ip_local_port_range="1024 65535"
sysctl -w net.core.somaxconn="1024"
sysctl -w net.ipv4.tcp_max_syn_backlog="65535"
启用TCP连接的时间等待 (TCP TIME-WAIT) 状态减少:
sysctl -w net.ipv4.tcp_tw_reuse="1"
sysctl -w net.ipv4.tcp_tw_recycle="1"
Read more →