mac系统 修改ulimit参数

当mac系统出现“文件总数超出最大限制”的问题的时候,可以采用一下方法:

    1、首先 vim  /etc/sysctl.conf,在其中写入以下参数:

        kern.maxfiles:65536

        kern.maxfilesperproc:65536

  2、重启电脑,使其生效。

  3、在用户目录下的.bash_profile中的末尾加入ulimit -n 65535

  4、source ~/.bash_profile 大功告成

猜你喜欢

转载自blog.csdn.net/qq_36581986/article/details/80983769
今日推荐