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

 

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

   

3查看修改后的ulimit

 

[root@bogon ~]# ulimit -a

 

posted @ 2018-11-24 16:19  effortsing  阅读(6573)  评论(0编辑  收藏  举报