增加rlimit Mac OSX 10.8 [英] Increase 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屋!