Last active
July 21, 2020 08:42
-
-
Save coffebar/4e1ef3772d8aa8185bd28171c2fadc1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# лимит соединений с ОС Linux | |
sysctl -a | grep conntrack_max | |
echo "net.netfilter.nf_conntrack_max=1048576" >> /etc/sysctl.conf | |
# максимальное количество соединений для работы механизма connection tracking | |
echo "net.ipv4.netfilter.ip_conntrack_max=16777216" >> /etc/sysctl.conf | |
# максимальное число открытых сокетов, ждущих соединения | |
echo "net.core.somaxconn=65535" >> /etc/sysctl.conf | |
# применить изменения | |
sysctl -p /etc/sysctl.conf | |
# лимит файловых дискрипторов | |
ulimit -n | |
echo "www-data hard nofile 65535" >> /etc/security/limits.conf | |
echo "www-data soft nofile 65535" >> /etc/security/limits.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment