linux difficult problems

1. With regard to user login error

[root@app-92 ~]# su - dev
Last login: Mon May 27 10:45:39 CST 2019 on pts/3
su: failed to execute /bin/bash: Resource temporarily unavailable

Solution:

vim /etc/security/limits.d/20-nproc.conf

  will

  *          soft    nproc     4096

 Change

  *          soft    nproc     8192

if not

The number in the vim /etc/security/limits.conf need to login username increase

@ Username - maxlogins 10

* - maxsyslogins 10 that can be added to be verified

 

Note: sshd also limited the maximum number of users connected MaxSessions

Guess you like

Origin www.cnblogs.com/dogs/p/10929627.html