/etc/sysctl.conf net.ipv4.ip_local_port_range = 1024 65535 net.ipv4.tcp_fin_timeout = 30 fs.file-max = 2097152 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_syncookies = 0 net.core.somaxconn = 1024 /etc/security/limits.conf * soft nofile 65535 * hard nofile 65535 /etc/pam.d/common-session session required pam_limits.so