最终解决为:服务器的连接数限制为4096过小,修改以后可连接

214的服务器,使用个别账号ssh连接显示绿色的对号,可是页面空白无法连接成功。

使用sftp连接,显示错误如图。

使用root账号连接成功后,使用su命令切换提示

Last login: Thu Mar 26 08:57:01 CST 2020 from 112.224.4.142 on pts/0
su: failed to execute /bin/bash: Resource temporarily unavailable

解决方案:

查看当前进程总数:ps -eLf | wc -l

[root-node01@/root]#egrep -v "^$|^#" /etc/security/limits.d/20-nproc.conf
*          soft    nproc     4096
root       soft    nproc     unlimited
[root-node01@/root]#cd /etc/security/limits.d
[root-node01@/etc/security/limits.d]#vi *

 

 

 

 

 

# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

*          soft    nproc     10240
root       soft    nproc     unlimited
~

 

参考文章:https://blog.csdn.net/ITzhangdaopin/article/details/79960217?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task


posted on 2020-03-27 10:54  陈岚  阅读(414)  评论(0编辑  收藏  举报