max_open_connections

2018-10-25  本文已影响0人  疏影浅清

1、修改/etc/security/limits.conf,添加

root soft nofile 65535

root hard nofile 65535

* soft nofile 65535

* hard nofile 65535

2、修改/lib/systemd/system/mysql.service,添加

LimitNOFILE=65535

LimitNPROC=65535

保存后,执行以下命令

systemctl daemon-reload

service mysql restart

上一篇 下一篇

猜你喜欢

热点阅读