标签:login elastic ast ulimit sel sshd服务 sea max vim
修改/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服务
vim /etc/sysctl.conf vm.max_map_count=655360 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_max_tw_buckets = 6000 net.ipv4.tcp_tw_reuse = 1 fs.file-max = 65536 net.ipv4.tcp_syncookies = 0 net.ipv4.tcp_orphan_retries = 1 net.ipv4.tcp_fin_timeout = 25 net.ipv4.tcp_max_orphans = 8192 net.ipv4.ip_local_port_range = 32768 61000 sysctl -p
标签:login elastic ast ulimit sel sshd服务 sea max vim
原文地址:https://www.cnblogs.com/sunlong88/p/12822679.html