1.临时设置
[root@host2 ~]# ulimit -n
10240
2.永久设置 在/etc/security/limits.conf 中加入
* soft nofile 65535
* hard nofile 65535
[root@host2 ~]# tail /etc/security/limits.conf
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
* soft nofile 65535
* hard nofile 65535
# End of file
如下图:
3.重启
4.用ulimit命令查看
标签:student,ulimite,hard,nofile,永久,设置,nproc,65535,soft From: https://blog.51cto.com/u_15937426/6523145