/etc/security/limits.conf

[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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章