对所有用户都生效:

vi /etc/profile

添加一行如下:

ulimit -n 65535

 

执行source /etc/profile生效,不需要重启服务器。

$ source /etc/profile
$ ulimit -n
65535

以后重启服务器后也生效。

如果不修改,默认值为1024,用ulimit -n或是ulimit -a可查看当前值。

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
猜你喜欢
  • 2021-12-03
  • 2022-01-23
  • 2021-11-06
  • 2021-10-19
相关资源
相似解决方案