免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4366 | 回复: 1
打印 上一主题 下一主题

[FreeBSD] freebsd下怎样调整open files? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-10-20 19:02 |显示全部楼层 |倒序浏览
我的系统是freebsd11-64,做了mysql主从复制经历了长时间等待最终还是没有复制,MySQL版本5.7.18,查看错误日志是这样的:
2017-08-16T08:55:23.669889Z 0 [Warning] Could not increase number of max_open_files to more than 28557 (request: 32929)
2017-08-16T08:55:23.670664Z 0 [Warning] Changed limits: table_open_cache: 14198 (requested 16384)

[Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please 2017-10-19T10:00:50.680454Z 1 [Warning] consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.

在网上查询说要调整系统的 open files数。Linux下有个/etc/security/limits.conf,而FreeBSD下却没有这个文件,请问各位前辈FreeBSD下怎么调整open files呢?是不是/etc/sysctl.conf呢?实例怎么写呢?谢谢了!

论坛徽章:
0
2 [报告]
发表于 2017-10-24 20:35 |显示全部楼层
本帖最后由 czjin 于 2017-10-24 20:54 编辑

  可能是的吧,我没有设置过,在Linux里有/etc/security/limits.conf这样一个文件,通常可以设置为soft   nofile       655350  hard   nofile       655350    我安装的是freebsd11-64  FreeBSD下在/etc/sysctl.conf 打开后只能看到如下图:具体怎么设置呢?另外还有cache,users怎么设置呢?哪位老大设置过或有实例和教程?谢谢了lsstarboy版主!

11111.PNG (10.16 KB, 下载次数: 0)

11111.PNG

11111.PNG (10.16 KB, 下载次数: 68)

11111.PNG
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP