--问题,无法登录用户
# 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
|