Skip to content

Instantly share code, notes, and snippets.

@akitaonrails
Forked from mattmanning/gist:1430691
Created February 2, 2012 17:22

Revisions

  1. akitaonrails revised this gist Feb 2, 2012. 1 changed file with 15 additions and 9 deletions.
    24 changes: 15 additions & 9 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,19 @@
    If you're getting this error trying to use ApacheBench on OS X Lion:

    Benchmarking mwmanning.com (be patient)...apr_socket_recv: Connection reset by peer (54)

    You need to download the latest beta version of Apache and rebuild ab. Here's how (assuming you have homebrew installed).
    # If you're getting this error trying to use ApacheBench on OS X Lion:
    # Benchmarking mwmanning.com (be patient)...apr_socket_recv: Connection reset by peer (54)
    #
    # You need to download the latest beta version of Apache and rebuild ab.
    # Here's how (assuming you have homebrew installed).

    # Install Homebrew (https://github.com/mxcl/homebrew) and then the Perl Regex support
    brew install pcre
    tar xzvf httpd-2.3.15-beta.tar.gz
    cd httpd-2.3.15-beta

    # Download the latest from http://httpd.apache.org/download.cgi, then decompress and compile it
    curl -O http://ftp.unicamp.br/pub/apache//httpd/httpd-2.3.16-beta.tar.bz2
    tar xvfj httpd-2.3.16-beta.tar.bz2
    cd httpd-2.3.16-beta
    ./configure
    make
    make install
    sudo cp /usr/local/apache2/bin/ab /usr/sbin/ab

    # backup the original 'ab' command and replace it for the new one
    sudo mv /usr/sbin/ab /usr/sbin/ab.old
    sudo cp support/ab /usr/sbin/ab
  2. @mattmanning mattmanning revised this gist Dec 4, 2011. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # If you're getting this error trying to use ApacheBench on OS X Lion:
    #
    # Benchmarking mwmanning.com (be patient)...apr_socket_recv: Connection reset by peer (54)
    #
    # You need to download the latest beta version of Apache and rebuild ab. Here's how (assuming you have homebrew installed).
    If you're getting this error trying to use ApacheBench on OS X Lion:

    Benchmarking mwmanning.com (be patient)...apr_socket_recv: Connection reset by peer (54)

    You need to download the latest beta version of Apache and rebuild ab. Here's how (assuming you have homebrew installed).

    brew install pcre
    tar xzvf httpd-2.3.15-beta.tar.gz
  3. @mattmanning mattmanning renamed this gist Dec 4, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @mattmanning mattmanning revised this gist Dec 4, 2011. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    If you're getting this error trying to use ApacheBench on OS X Lion:
    Benchmarking mwmanning.com (be patient)...apr_socket_recv: Connection reset by peer (54)
    You need to download the latest beta version of Apache and rebuild ab. Here's how (assuming you have homebrew installed).
    # If you're getting this error trying to use ApacheBench on OS X Lion:
    #
    # Benchmarking mwmanning.com (be patient)...apr_socket_recv: Connection reset by peer (54)
    #
    # You need to download the latest beta version of Apache and rebuild ab. Here's how (assuming you have homebrew installed).

    brew install pcre
    tar xzvf httpd-2.3.15-beta.tar.gz
  5. @mattmanning mattmanning created this gist Dec 4, 2011.
    13 changes: 13 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    If you're getting this error trying to use ApacheBench on OS X Lion:
    Benchmarking mwmanning.com (be patient)...apr_socket_recv: Connection reset by peer (54)
    You need to download the latest beta version of Apache and rebuild ab. Here's how (assuming you have homebrew installed).

    brew install pcre
    tar xzvf httpd-2.3.15-beta.tar.gz
    cd httpd-2.3.15-beta
    ./configure
    make
    make install
    sudo cp /usr/local/apache2/bin/ab /usr/sbin/ab