歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> CentOS設置用戶句柄數與用戶進程數

CentOS設置用戶句柄數與用戶進程數

日期:2017/3/6 9:35:26   编辑:學習Linux

CentOS設置用戶句柄數與用戶進程數


CentOS設置用戶句柄數與用戶進程數


CentOS設置用戶句柄數與用戶進程數

1、用戶句柄數

vi /etc/security/limits.conf在文件末尾增加

[plain]view plaincopy在CODE上查看代碼片派生到我的代碼片
  1. #Myadd
  2. *softcoreunlimit
  3. *hardcoreunlimit
  4. *softfsizeunlimited
  5. *hardfsizeunlimited
  6. *softdataunlimited
  7. *harddataunlimited
  8. *softnproc65535
  9. *hardnproc63535
  10. *softstackunlimited
  11. *hardstackunlimited
  12. *softnofile409600
  13. *hardnofile409600

2、用戶進程數

vim /etc/security/limits.d/90-nproc.conf
把1024修改成4096,默認情況下普通用戶是1024,root沒有限制

[plain]view plaincopy在CODE上查看代碼片派生到我的代碼片
  1. *softnproc4096
  2. rootsoftnprocunlimited

http://xxxxxx/Linuxjc/1137412.html TechArticle

Copyright © Linux教程網 All Rights Reserved