普通用户登陆linux系统报错 -bash: fork: retry: No child processes
于是乎登系统查看,发现登陆root用户不报错,普通用户报错。是操作系统无法创建更多的进程导致无法连接进系统。解除普通用户打开最大文件数限制。
·
- 问题现象
今天开发反应登陆系统报错:
于是乎登系统查看,发现登陆root用户不报错,普通用户报错。
- 从报错内容分析:
是操作系统无法创建更多的进程导致无法连接进系统。
- 处理思路
解除普通用户打开最大文件数限制。
echo "root soft nofile 65535" >> /etc/security/limits.conf
echo "root hard nofile 65535" >> /etc/security/limits.conf
echo "* soft nofile 65535" >> /etc/security/limits.conf
echo "* hard nofile 65535" >> /etc/security/limits.conf
#echo -e "root soft nofile 65535\nroot hard nofile 65535\n* soft nofile 65535\n* hard nofile 65535\n" >> /etc/security/limits.conf
sed -i 's#4096#65535#g' /etc/security/limits.d/20-nproc.conf

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐
所有评论(0)