美文网首页
max_open_connections

max_open_connections

作者: 疏影浅清 | 来源:发表于2018-10-25 18:52 被阅读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

相关文章

网友评论

      本文标题:max_open_connections

      本文链接:https://www.haomeiwen.com/subject/clictqtx.html