Created
October 22, 2018 18:13
-
-
Save daimaou92/5b9574afcb6e4f3e93ad368ce3004b97 to your computer and use it in GitHub Desktop.
Nginx Tuning
This file contains hidden or 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
echo "2048 64512" | sudo dd of=/proc/sys/net/ipv4/ip_local_port_range | |
echo "1" | sudo dd of=/proc/sys/net/ipv4/tcp_tw_recycle | |
echo "1" | sudo dd of=/proc/sys/net/ipv4/tcp_tw_reuse | |
echo "10" | sudo dd of=/proc/sys/net/ipv4/tcp_fin_timeout | |
echo "65536" | sudo dd of=/proc/sys/net/core/somaxconn | |
echo "65536" | sudo dd of=/proc/sys/net/ipv4/tcp_max_syn_backlog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment