@
mahone3297 我也不是很清楚啊,我改过 ulimit 貌似也没多大帮助,反正以前经常会遇到 socket 无法打开之类的错误后来不知道怎么又好了,我在 ~/.bash_profile 里面把 ulimit -n 10240 也加上了,现在的环境是这样
$ ulimit -n
10240
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited