[root@localhost ~]# cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB) ---限制內核文件的大小
# - data - max data size (KB) ---------------最大數據大小
# - fsize - maximum filesize (KB)-------------最大文件大小
# - memlock - max locked-in-memory address space (KB)--最大鎖定內存地址空間
# - nofile - max number of open files-----------打開文件的最大數目
# - rss - max resident set size (KB)------------最大持久設置大小
# - stack - max stack size (KB)-----------------最大棧大小
# - cpu - max CPU time (MIN)--------------------最多CPU時間
# - nproc - max number of processes-------------進程的最大數目
# - as - address space limit---------------------地址空間限制
# - maxlogins - max number of logins for this user----此用戶允許登錄的最大數目
# - maxsyslogins - max number of logins on the system--系統允許登錄的最多用戶數
# - priority - the priority to run user process with--用戶進程的優先級運行
# - locks - max number of file locks the user can hold--用戶可以持有的文件鎖最大數量
# - sigpending - max number of pending signals---未處理信號的最大數量
# - msgqueue - max memory used by POSIX message queues (bytes)--內存使用最大POSIX消息隊列
# - nice - max nice priority allowed to raise to--允許的最大優先級
# - rtprio - max realtime priority----最大實時優先
#
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
jacky hard maxlogins 3
# End of file
/etc/security/limits.conf
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Linux基本操作命令
wbzjacky
2019-02-24 13:12:38
真實的模擬***綜合實驗
wbzjacky
2019-02-24 13:12:37
三層交換機的HSRP、vlan、端口聚合
wbzjacky
2019-02-24 13:12:37
HSRP和二層交換機的端口聚合、vlan
wbzjacky
2019-02-24 13:12:37
如果同事暗中傷害你,應該怎麼辦?
這個饅頭有餡
2019-02-24 13:59:08
職場中,抱怨越多的員工,越被領導瞧不起!
這個饅頭有餡
2019-02-24 13:59:08
老程序員被裁,應屆生卻能月薪 1.3 萬?這你能忍?
前端高達
2019-02-24 13:48:04
遇到到處蹭吃卻從不請客吃飯的主怎麼辦?
樑軍年
2019-02-24 13:26:35
高標準機房綜合配線安裝
wbzjacky
2019-02-24 13:12:38
IPsec ***實驗
wbzjacky
2019-02-24 13:12:37
CISCO路由AAA的Easy ***
wbzjacky
2019-02-24 13:12:37
CISCO訪問控制列表 企業網絡管理的必殺技
wbzjacky
2019-02-24 13:12:37