MacOS进程报错accept: too many open files解决方法

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):

2. Change the owner of your new file:

3. Load these new settings:

4. Finally, check that the limits are correct:


电子邮件地址不会被公开。 必填项已用*标注