Failed to set posix_spawn_file_a

2021-03-25  本文已影响0人  我的发
如何解决错误:Failed to set posix_spawn_file_actions for fd -1 at index 1 with errno 9
╭─mao@BatmanMac.local /etc ‹ruby-2.7.0›
╰─➤  ulimit -a
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              unlimited
-d: data seg size (kbytes)          unlimited
-s: stack size (kbytes)             8192
-c: core file size (blocks)         0
-v: address space (kbytes)          unlimited
-l: locked-in-memory size (kbytes)  unlimited
-u: processes                       709
-n: file descriptors                256 // 可以看到这里默认一般是
╭─jianzhimao@BatmanMac.local /etc ‹ruby-2.7.0›
╰─➤  ulimit -n 9000
╭─jianzhimao@BatmanMac.local /etc ‹ruby-2.7.0›
╰─➤  ulimit -a
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              unlimited
-d: data seg size (kbytes)          unlimited
-s: stack size (kbytes)             8192
-c: core file size (blocks)         0
-v: address space (kbytes)          unlimited
-l: locked-in-memory size (kbytes)  unlimited
-u: processes                       709
-n: file descriptors                9000 // 可以看到这里已经改为9000啦,经测试好像最多只能改到1万

TODO: 文件的MD5是怎么生成的?

上一篇 下一篇

猜你喜欢

热点阅读