博客 > 术业专攻> Linux基础> 系统与优化> Linux的普通用户bash突然报错bash:fork:retry:Nochildprocesses的解决办法 2019年08月29日 11:24:47
在普通用户下,突然bash失灵,无论执行什么命令,都报如下问题:
bash: fork: retry: No child processes
上面这段错误提示的本质是Linux操作系统无法创建更多进程,导致出错。
因此要解决这个问题需要修改Linux允许创建更多的进程。
#并发连接数 #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
一个是修改最大文件打开数,一个是最大进程数,其中root表示管理员,*表示普通用户。
© 2018 www.qingketang.net 鄂ICP备18027844号-1
武汉快勤科技有限公司 13554402156 武汉市东湖新技术开发区关山二路特一号国际企业中心6幢4层7号
扫码关注,全站教程免费播放
订单金额:
支付金额:
支付方式: