增加rlimit Mac OSX 10.8 [英] Increase rlimit Mac OSX 10.8

查看:73
本文介绍了增加rlimit Mac OSX 10.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习MongoDB,当我启动mongo shell时,出现了一个疯狂的警告消息.它说:

I'm learning MongoDB and when I start the mongo shell a wild warning message appeared. It says:

如何更改软限制".我正在使用Mac OSX 10.8.2

How do i change the "soft rlimits". I'm using Mac OSX 10.8.2

提前Tnx

推荐答案

您要搜索的是launchctl limit maxfiles.
要更改它,您需要运行例如命令launchctl limit maxfiles 1024 2048.
要永久更改这些值,您需要创建/etc/launchctl.conf并在其中设置所需的值(请参见

What you are searching for is launchctl limit maxfiles.
To change it you need to run command launchctl limit maxfiles 1024 2048 for example.
To permanently change those values you need to create /etc/launchctl.conf and set there values you need (see here for details) or add command mentioned above to your ~/.bash_profile.
Or you can create script which will set limit and then launch mongo

这篇关于增加rlimit Mac OSX 10.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆