1、需要超级用户才能修改:
su - root
password:******
2、vi /etc/security/limits.conf
添加:
* soft nofile 30000
*
hard nofile 60000
3、保存,重启系统,查看:
ulimit -n
30000
连接数变大了
注:修改完配置,不需要重启亦能生效
1、需要超级用户才能修改:
su - root
password:******
2、vi /etc/security/limits.conf
添加:
* soft nofile 30000
*
hard nofile 60000
3、保存,重启系统,查看:
ulimit -n
30000
连接数变大了
注:修改完配置,不需要重启亦能生效
相关文章: