5
无法将打开文件的限制增加到4096(Ubuntu)以上
我在Ubuntu 17.04上。试图提高打开文件的限制,但我在网上找到的所有说明均无效。我可以提高到4096,但不能超过该范围。 $ ulimit -n 1024 $ ulimit -n 4096 $ ulimit -n 4096 这样可行。这不是: $ ulimit -n 4097 bash: ulimit: open files: cannot modify limit: Operation not permitted 似乎是由于硬限制: $ ulimit -Hn 4096 我尝试将这些行添加到/etc/security/limits.conf中: * hard nofile 65535 * soft nofile 65535 root soft nofile 65535 root hard nofile …