/etc/sysctl.conf
net.core.netdev_max_backlog = 1048576 # 默认为1000
net.ipv4.tcp_max_syn_backlog = 1048576 # 默认为1024
nginx:
数量是cpu核数的2倍性能最优
nginx.conf worker_processes 8 # cpu*2
配置文件的server块
listen 80 backlog=8192;
/etc/php-fpm.d/www.conf 文件进行调整
listen.backlog = 8192 # 默认为-1(由系统决定)
https://blog.csdn.net/lhb_blog/article/details/38730915