1.
/etc/security/limits.conf 檔案最後加入
* soft nofile 65535
* hard nofile 65535
2.
/etc/profile 檔案最後加入
ulimit -c unlimited
ulimit -n 65535
3.
/usr/lib/systemd/system/rc-local.service 檔案最後加入
LimitNOFILE=65535
然後重開機
ulimit -a 檢查是否生效