最终解决为:服务器的连接数限制为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
~