su: cannot set user id: Resource temporarily unavailable(资源不可用)
2018-04-02 10:18
603 查看
--问题,无法登录用户
# su - www
su: cannot set user id: Resource temporarily unavailable
--查看当前系统该用户进程数,发现进程数很多
# ps aux|grep www | wc -l
2180
--检查系统配置的用户资源分配情况,发现www账号文件进程数并没有配置,而是使用系统默认设置的值,
用户进程数noproc上限是由/etc/security/limits.d/90-noproc.conf配置文件限制。
# cat /etc/security/limits.conf
# End of file
@users soft nofile 100001
@users hard nofile 100002
@root soft nofile 200001
@root hard nofile 200002
mysql soft noproc 65535
mysql hard noproc 65535
--检查系统文件进程数限制
# cat /etc/security/limits.d/90-nproc.conf
* soft nproc 1024
root soft nproc unlimited
# vi /etc/security/limits.d/90-nproc.conf--问题解决
-------------------------------------------------------------------------------------------------------------------------
# su - www
su: cannot set user id: Resource temporarily unavailable
--查看当前系统该用户进程数,发现进程数很多
# ps aux|grep www | wc -l
2180
--检查系统配置的用户资源分配情况,发现www账号文件进程数并没有配置,而是使用系统默认设置的值,
用户进程数noproc上限是由/etc/security/limits.d/90-noproc.conf配置文件限制。
# cat /etc/security/limits.conf
# End of file
@users soft nofile 100001
@users hard nofile 100002
@root soft nofile 200001
@root hard nofile 200002
mysql soft noproc 65535
mysql hard noproc 65535
--检查系统文件进程数限制
# cat /etc/security/limits.d/90-nproc.conf
* soft nproc 1024
root soft nproc unlimited
# vi /etc/security/limits.d/90-nproc.conf--问题解决
方法1:直接修改*开头的用户进程数 * soft nproc 1024 方法2:增加用户,建议用此方法 www soft nproc 4096 |
相关文章推荐
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable 问题分析和解决
- su: cannot set user id: Resource temporarily unavailable
- 关于su: cannot set user id: Resource temporarily unavailable的问题
- su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable
- [Linux] su: cannot set user id: Resource temporarily unavailable
- su: cannot set user id: Resource temporarily unavailable【转】
- su: cannot set user id: Resource temporarily unavailable
- “su: cannot set user id: Resource temporarily unavailable”处理及limits.conf说明
- su: cannot set user id: Resource temporarily unavailable问题解决
- su: cannot set user id: Resource temporarily unavailable
- cannot set user id Resource temporarily unavailable故障解决