华为云调优配置:
vim /etc/sysctl.conf
加入:
vm.swappiness=0
net.core.somaxconn=1024
net.ipv4.tcp_max_tw_buckets=5000
net.ipv4.tcp_max_syn_backlog=1024
vim /etc/security/limits.conf
加入:
root soft nofile 65535
root hard nofile 65535
- soft nofile 65535
- hard nofile 65535