1、vi /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
参照示例,正常修改(Redhat6.4)
2、vi /etc/security/limits.d/90-nproc.conf
* hard nproc 65535
* soft nproc 65535
* hard nproc 65535
* soft nproc 65535
参照示例,正常修改
3、vi /etc/ssh/sshd_config
修改为:uselogin=yes
4、service sshd restart
时间: 2024-11-05 11:44:33