Skip to content

Instantly share code, notes, and snippets.

@bonesoul
Created December 25, 2013 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bonesoul/8127858 to your computer and use it in GitHub Desktop.
Save bonesoul/8127858 to your computer and use it in GitHub Desktop.
stratum max connections fix
echo "net.ipv4.ip_local_port_range = 20000 65535" >> /etc/sysctl.conf && echo 20000 65535 > /proc/sys/net/ipv4/ip_local_port_range && echo "net.ipv4.tcp_tw_reuse = 1" >> /etc/sysctl.conf && echo "net.core.somaxconn=1638400" >> /etc/sysctl.conf && sysctl -p /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment