没有合适的资源?快使用搜索试试~ 我知道了~
too maney files open MySQL 解决方案
需积分: 0 0 下载量 138 浏览量
2023-09-16
10:35:31
上传
评论
收藏 96KB PDF 举报
温馨提示
试读
1页
too maney files open MySQL 解决方案
资源推荐
资源详情
资源评论
方案源于:
http://unix.stackexchange.com/questions/152186/mysql-max-open-files-more-than-1024#answe
r-15791;
Edit /etc/security/limits.conf and add the following lines
mysql soft nofile 65535
mysql hard nofile 65535
then reboot.
Then
edit /usr/lib/systemd/system/mysqld.service or /usr/lib/systemd/system/mariadb.
serviceand add
LimitNOFILE=infinity
LimitMEMLOCK=infinity
Then restart the db service:
systemctl reload mariadb.service
(注意:我环境是 centos7,restart MySQL DB 时,提示输入 systemctl daemon-reload),然后
查看进入 MySQL --> open_files_limit 65536 OK
资源评论
CodeGolang
- 粉丝: 55
- 资源: 1088
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功