修改/etc/security/limits.conf文件
* soft nofile 85536 * soft nproc 85536 * hard nofile 85536 * hard nproc 85536 * - nofile 85536 elasticsearch sfot nofile 100000 elasticsearch hard nofile 100000
vim /etc/security/limits.d/20-nproc.conf
* soft nproc 85536 * hard nproc 85536 root soft nproc unlimited
vi /etc/ssh/sshd_config
将# UseLogin no
UseLogin yes
重启sshd服务