ITPub博客

首页 > Linux操作系统 > Linux操作系统 > LINUX系统用户进程数满,导致系统无法登陆

LINUX系统用户进程数满,导致系统无法登陆

原创 Linux操作系统 作者:hanwu26 时间:2016-10-09 09:40:02 0 删除 编辑

--问题,无法登录用户

# su - xeportal

su: cannot set user id: Resource temporarily unavailable

--查看当前系统该用户连接数

# ps -u xeportal -L | wc -l

10241

--检查系统配置的用户进程数

# cat /etc/security/limits.conf

*               soft    nproc   10240

*               hard    nproc   16384

*               soft    nofile  10240

*               hard    nofile  65536

 

# cat  /etc/security/limits.d/90-nproc.conf

# Default limit for number of user's processes to prevent

# accidental fork bombs.

# See rhbz #432903 for reasoning.

 

*          soft    nproc     10240

root       soft    nproc     unlimite

 

--问题解决

# vi /etc/security/limits.d/90-nproc.conf

方法1:直接修改*开头的用户进程数

*          soft    nproc     16384

 

方法2:添加一行指定用户xeportal的进程。建议使用该方式解决。

xeportal  soft    nproc     16384

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29191018/viewspace-2125968/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: RMAN SET NEWNAME
请登录后发表评论 登录
全部评论

注册时间:2014-03-27

  • 博文量
    9
  • 访问量
    30720