sysctl -a | grep backlog
sysctl -w net.core.netdev_max_backlog=1024
sysctl -w net.ipv4.tcp_max_syn_backlog=1024
vi nginx.conf
listen 443 ssl http2 backlog=1024;
vi php-fpm.conf
[www]
listen = /tmp/php-cgi-72.sock
listen.backlog = 1024
ab -n 1000 -c 1000 https://www.genewill.com/admin
-n -- 测试总次数
-c -- 每次发送的总请求数
ss -nlt 查看