博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mac提示too many open files
阅读量:7096 次
发布时间:2019-06-28

本文共 1087 字,大约阅读时间需要 3 分钟。

hot3.png

来源: 

down vote

It seems like there is an entirely different method for changing the open files limit for each version of OS X!

For OS X Sierra (10.12.X) you need to:

1. Create a file at /Library/LaunchDaemons/limit.maxfiles.plist and paste the following in (feel free to change the two numbers (which are the soft and hard limits, respectively):

Label
limit.maxfiles
ProgramArguments
launchctl
limit
maxfiles
64000
524288
RunAtLoad
ServiceIPC

2. Change the owner of your new file:

sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist

3. Load these new settings:

sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist

4. Finally, check that the limits are correct:

launchctl limit maxfiles

转载于:https://my.oschina.net/u/1538135/blog/1630959

你可能感兴趣的文章
fdisk和parted
查看>>
shell 数组
查看>>
ASP--文件和文件夹操作
查看>>
网关的作用
查看>>
zabbix 在php7 下安装 always-populate-raw-post-data = -1 问题
查看>>
nagios邮件报警
查看>>
python快速求解不定积分和定积分
查看>>
Mongo cheatsheet(速查页)
查看>>
常用服务器模型总结
查看>>
Aho Corasick自动机结合DoubleArrayTrie极速多模式匹配
查看>>
term node count
查看>>
Direct2D (36) : RenderTarget.DrawText() 与 IDWriteTextFormat
查看>>
详测 Generics Collections TList (8): Sort
查看>>
显示系统托盘列表(并执行隐藏与显示) - 回复 "anybet" 的问题
查看>>
一句话判断网络是否联通
查看>>
再学 GDI+[85]: TGPImage(5) - RotateFlip - 旋转与镜像
查看>>
Delphi 与 DirectX 之 DelphiX(42): TDIB.GaussianBlur();
查看>>
获取时间戳 和 备用ajax案例
查看>>
rsyslog+mysql+loganalyzer构建日志服务器
查看>>
linux文件最大连接数问题---bash:ulimit:open files:cannot modify limit:Operation not permitted...
查看>>