手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

Centos 调整ulimit方法

时间:2024-10-12 02:29:20

1、操作系统版本为CentOS Linux release 7.6.1810

Centos 调整ulimit方法

2、ulimit -n查看大小,默认是1024

Centos 调整ulimit方法

3、ulimit -n 204800 临时设置下只在此终端下有效

Centos 调整ulimit方法

4、永久生效的方法:修鸷拳林根改/etc/security/limits.conf文件# End of file* soft nofile 204800* hard nofile 204800忮氽阝另* soft nproc 204800* hard nproc 204800* # 代表针对所有用户noproc #是代表最大进程数nofile #是代表最大文件打开数

Centos 调整ulimit方法

5、重启操作系统

Centos 调整ulimit方法

6、重启后用root用户进行测试ulimit -n

Centos 调整ulimit方法

7、新建普通用户进行测试

Centos 调整ulimit方法
© 手抄报圈