linux系统修改SSH最大连接数,修改nofile,nproc参数方法
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*...
·
1、vi /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
2、vi /etc/security/limits.d/90-nproc.conf 或者 vim /etc/security/limits.d/20-nproc.conf
* soft nproc 4096
root soft nproc unlimited
iibs soft nproc unlimited
3、vi /etc/ssh/sshd_config
修改为:uselogin=yes
4、ssh启停
#开始
systemctl start sshd.service
#停止
systemctl stop sshd.service
#重启
systemctl restart sshd.service
#状态查看
systemctl status sshd.service
更多推荐
已为社区贡献1条内容
所有评论(0)