/etc/security/limits.conf 系统资源配置文件详解
2018-04-03 11:44
603 查看
/etc/security/limits.conf
是Linux
资源使用配置文件,用来限制用户对系统资源的使用
语法:<domain> <type> <item> <value>
[root@localhost~]# cat /etc/security/limits.conf
* soft nproc 65535 # 警告设定所有用户最大打开进程数为65535
* hard nproc 65535 # 严格设定所有用户最大打开进程数为65535
* soft nofile 65535 # 警告设定所有用户最大打开文件数为65535
* hard nofile 65535 # 严格设定所有用户最大打开文件数为65535
<domain>表示要限制的用户,可以是:
① 用户名
② 组名(组名前面加'@'以区别用户名)
③ *(表示所有用户)
<type>有两个值:
① soft 表示警告的设定,可以超过这个设定值,但是超过会有警告信息
② hard 表示严格的设定,必定不能超过这个设定的值
<item>表示可选的资源,如下:
① core:限制内核文件的大小
② data:最大数据大小
③ fsize:最大文件大小
④ memlock:最大锁定内存地址空间
⑤ nofile:打开文件的最大数目
⑥ rss:最大持久设置大小
⑦ stack:最大栈大小
⑧ cpu:以分钟为单位的最多CPU时间
⑨ nproc:进程的最大数目
⑩ as:地址空间限制
<value>表示要限制的值
源文档 <https://www.cnblogs.com/pzk7788/p/7250723.html
是Linux
资源使用配置文件,用来限制用户对系统资源的使用
语法:<domain> <type> <item> <value>
[root@localhost~]# cat /etc/security/limits.conf
* soft nproc 65535 # 警告设定所有用户最大打开进程数为65535
* hard nproc 65535 # 严格设定所有用户最大打开进程数为65535
* soft nofile 65535 # 警告设定所有用户最大打开文件数为65535
* hard nofile 65535 # 严格设定所有用户最大打开文件数为65535
<domain>表示要限制的用户,可以是:
① 用户名
② 组名(组名前面加'@'以区别用户名)
③ *(表示所有用户)
<type>有两个值:
① soft 表示警告的设定,可以超过这个设定值,但是超过会有警告信息
② hard 表示严格的设定,必定不能超过这个设定的值
<item>表示可选的资源,如下:
① core:限制内核文件的大小
② data:最大数据大小
③ fsize:最大文件大小
④ memlock:最大锁定内存地址空间
⑤ nofile:打开文件的最大数目
⑥ rss:最大持久设置大小
⑦ stack:最大栈大小
⑧ cpu:以分钟为单位的最多CPU时间
⑨ nproc:进程的最大数目
⑩ as:地址空间限制
<value>表示要限制的值
源文档 <https://www.cnblogs.com/pzk7788/p/7250723.html
相关文章推荐
- Linux资源使用配置文件 /etc/security/limits.conf
- Linux资源使用配置文件 /etc/security/limits.conf
- Linux的配置文件/etc/security/limits.conf资料
- /etc/nginx/nginx.conf配置文件详解
- linux /etc/resolv.conf /etc/hosts配置文件详解
- /etc/security/limits.conf 控制文件描述符,进程数,栈大小等
- AIX 修改系统文件 /etc/security/limits
- oracle安装需要修改的文件/etc/security/limits.conf
- 网络配置文件详解――/etc/host.conf
- Linux系统配置文件 /etc/sysconfig详解
- 网络配置文件详解--/etc/resolv.conf
- 理解RHEL上安装oracle的配置参数 :/etc/security/limits.conf, /etc/profile, /etc/pam.d/login
- DNS的主配置文件/etc/resolv.conf详解
- /etc/security/limits.conf 文件说明
- /etc/resolv.conf配置文件详解
- /etc/syslog.conf日志配置文件详解
- samba.conf 文件配置详解
- smb.conf配置文件详解
- 使用ulimit命令和limits.conf限制系统资源的利用
- Linux下的samba服务器配置文件详解 smb.conf