centos 7设置limit,不生效问题

1记录未修改之前的ulimit

[root@bogon ~]# ulimit -a

2修改配置文件

vim  /etc/security/limits.conf   在后面添加

*      soft    nofile  100000

*      hard    nofile  100000

*      soft    nproc   65535

*      hard    nproc   65535

 

扫描二维码关注公众号,回复: 4209018 查看本文章

重启机器,修改 /etc/security/limits.conf 里的配置后,需重启机器才能生效

   

3查看修改后的ulimit

[root@bogon ~]# ulimit -a

猜你喜欢

转载自www.cnblogs.com/effortsing/p/10012489.html