1.关于用户登陆报错

[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

解决办法:

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

  将

  *          soft    nproc     4096

 改成

  *          soft    nproc     8192

如果不行

在vim /etc/security/limits.conf中将需要登陆的用户名的个数增大

@用户名             -       maxlogins       10

*                -       maxsyslogins    10这个可加 有待验证

 

注意:sshd中也有用户最大连接数的限制MaxSessions

相关文章:

  • 2022-01-02
  • 2021-06-04
  • 2021-10-09
  • 2022-02-05
  • 2021-10-11
  • 2021-11-29
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-14
  • 2021-09-26
  • 2021-10-27
  • 2022-02-18
  • 2022-12-23
相关资源
相似解决方案