ulimit -a
sysctl net.core.somaxconn
sysctl -w net.core.somaxconn=65535
# mysqladmin flush-hosts
mysql> set GLOBAL max_connections=2000
ulimit -a
sysctl net.core.somaxconn
sysctl -w net.core.somaxconn=65535
# mysqladmin flush-hosts
mysql> set GLOBAL max_connections=2000
转载于:https://www.cnblogs.com/longzhu/p/5766008.html