ulimit /etc/security/limits.conf

来源:互联网 发布:linux中文版系统下载 编辑:程序博客网 时间:2024/05/17 02:36
/etc/security/limits.conf 2011-11-19 15:51:18
标签:limits.conf休闲 职场
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://liuleideshitou.blog.51cto.com/2062845/719179

[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

本文出自 “相信未来” 博客,请务必保留此出处http://liuleideshitou.blog.51cto.com/2062845/719179

原创粉丝点击