记录ubuntu 16.4 修改 open files 限值
修改 /etc/systemd/user.conf 和 /etc/systemd/system.conf 中:
DefaultLimitNOFILE=65535
(这一步关键 之前试了n种方式都没效果)
修改 /etc/security/limits.conf 中:
* soft nofile 65535
* hard nofile 65535
重启系统 reboot
ulimit -n
65535
记录ubuntu 16.4 修改 open files 限值
修改 /etc/systemd/user.conf 和 /etc/systemd/system.conf 中:
DefaultLimitNOFILE=65535
(这一步关键 之前试了n种方式都没效果)
修改 /etc/security/limits.conf 中:
* soft nofile 65535
* hard nofile 65535
重启系统 reboot
ulimit -n
65535