歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS修改用戶最大進程數

CentOS修改用戶最大進程數

日期:2017/2/28 14:52:01   编辑:Linux教程

CentOS修改用戶最大進程數

一般在/etc/security/limits.conf 中修改最大打開文件數和進程數,如:

* soft noproc 102400
* hard noproc 102400
* soft nofile 102400
* hard nofile 102400

但是在centos 6.3下,方法不一樣了

首先在/etc/security/limits.conf中修改最大文件數和進程數

* soft nofile 102400

* hard nofile 102400

然後在/etc/security/limits.d/90-nproc.conf中修改最大文件數和進程數
* soft nproc 102400
* hard nproc 102400

更多CentOS相關信息見CentOS 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=14

Copyright © Linux教程網 All Rights Reserved