1、进入/etc/security
2、编辑limits.conf
* soft nofile 204800
* hard nofile 204800
* soft nproc 204800
* hard nproc 204800
添加如上所示
3、进入limits.d文件夹并修改文件
4、重启即可生效,或者使用ulimit -n 204800临时生效