Mac改变同时打开文件最大数
Mac改变同时打开文件最大数
解决遇到 Too many open files 的报错问题!
转载自 http://ronglei0324.blog.163.com/blog/static/676332232013122112049188/
$ sysctl kern.maxfiles kern.maxfiles: 12288 $ sysctl kern.maxfilesperproc kern.maxfilesperproc: 10240 $ sudo sysctl -w kern.maxfiles=1048600 kern.maxfiles: 12288 -> 1048600 $ sudo sysctl -w kern.maxfilesperproc=1048576 kern.maxfilesperproc: 10240 -> 1048576 $ ulimit -n 256 $ ulimit -n 1048576 $ ulimit -n 1048576
相关推荐
zxznsjdsj 2020-05-17
zhuangnet 2020-03-05
tianzyc 2020-02-01
Schvian 2013-06-03
WindowsandLinux 2013-07-24
enginetanmary 2014-06-17
samwong 2014-05-14
XCMercy 2019-12-14
newfarhui 2019-12-09
bloghongxiorg 2015-08-18
wanzi 2015-08-24
86590798 2015-07-31
aNian 2019-10-25
lolafon 2015-04-18