栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

GBASE 8A v953报错集锦21--修改 max

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

GBASE 8A v953报错集锦21--修改 max

问题现象

redhat 操作系统中使用非 root 用户修改 max_user_processes 不生效。

原因分析

安装包中修改参数未生效的原因:

使用 root 用户修改配置文件:/etc/security/limits.conf

增加如下内容:

* soft nproc 10240

* hard nproc 10240

* soft nofile 10240

* hard nofile 10240

其中 nofile 对应 open_files;nproc 对应 max_user_processes。

但是在 Linux 6.4 之后,如果只修改了该文件中的 nproc,那么其他非 root 用户对应

的 max_user_processes 并不会改变,仍然是 1024,这个是因为受到了下面这个文件

的影响。

/etc/security/limits.d/90-nproc.conf

查看一下:

# cat /etc/security/limits.d/90-nproc.conf

# Default limit for number of user's processes to prevent

# accidental fork bombs.

# See rhbz #432903 for reasoning.

* soft nproc 1024

root soft nproc unlimited

处理方法

修改/etc/security/limits.d/90-nproc.conf 将

* soft nproc 1024

修改为:

* soft nproc 10240

 修改/etc/security/limits.conf,将

* soft nofile 10240

修改为:

gbase soft nofile 10240 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/941954.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号