在Linux中更改RLIMIT_NPROC [英] Change the RLIMIT_NPROC in linux

查看:38
本文介绍了在Linux中更改RLIMIT_NPROC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一种方法来更改RedHat linux计算机中的RLIMIT_NPROC值.到目前为止,我还没有找到合适的方法来做到这一点.有没有一种简单的方法可以更改它,而无需使用c/c ++,只需使用命令行或编辑特定文件即可.

I;m trying to find a way to change the RLIMIT_NPROC value in my RedHat linux machine. So far I wasn't able to find a proper way to do so. Is there a simple way to change it without using c/c++ , just by using the command line or editing a specific file.

提前谢谢!

推荐答案

看一下/etc/security/limits.conf /etc/security/limits.d/(如果您的安装中存在后者).不要忘记以后重新登录

take a look at /etc/security/limits.conf or /etc/security/limits.d/ if the latter exists in your installation. Don't forget to re-login afterward

这篇关于在Linux中更改RLIMIT_NPROC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆