Skip to content

Instantly share code, notes, and snippets.

@ry
Created July 20, 2011 21:05
Show Gist options
  • Select an option

  • Save ry/1095933 to your computer and use it in GitHub Desktop.

Select an option

Save ry/1095933 to your computer and use it in GitHub Desktop.

Revisions

  1. ry created this gist Jul 20, 2011.
    4 changes: 4 additions & 0 deletions fix_macintosh_portrange.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #sudo sysctl -w net.inet.ip.portrange.first=32768
    sudo sysctl -w net.inet.ip.portrange.first=12000
    sudo sysctl -w net.inet.tcp.msl=1000
    sudo sysctl -w kern.maxfiles=1000000 kern.maxfilesperproc=1000000