1、需要超级用户才能修改:

     su - root

     password:******

2、vi /etc/security/limits.conf

   添加:

*                soft   nofile           30000
*                hard   nofile          60000

3、保存,重启系统,查看:

ulimit -n 

30000

连接数变大了

注:修改完配置,不需要重启亦能生效

相关文章:

  • 2021-10-22
  • 2022-12-23
  • 2022-02-18
  • 2021-11-26
  • 2021-07-13
  • 2022-03-03
猜你喜欢
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案