ulimit -a 查看当前的 open files 默认是 1024 1、在 /etc/profile 尾部添加 ulimit -n 8192 2、使设置生效 source /etc/profile 3、重新登陆,检查设置是否生效 ulimit -a