ab is erroring out with apr_socket_recv: Connection refused (61)

后端 未结 5 1865
一生所求
一生所求 2020-12-23 18:56

I am testing eventlet out, and I am getting this error:

~>ab -n 10 -c 1 http://localhost:8090/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>         


        
5条回答
  •  执笔经年
    2020-12-23 19:25

    New version's apache have fix the issue. Only have to rebuild ab.

    Try to download latest package from http://archive.apache.org/dist/

    Have to patch apache and build a new ab.

    $ wget http://archive.apache.org/dist/httpd/httpd-2.3.16-beta.tar.bz2
    $ tar jxvf httpd-2.3.16-beta.tar.bz2 
    $ cd httpd-2.3.16-beta
    $ ./configure
    

    Only have to build ab, which located in support folder.

    $ cd support
    $ make
    ...
    $ ./ab -n 10 -c 1 http://localhost:8090/
    

    If your apache is very old, then patch it and build as above.

    $ wget https://www.rtfm.ro/download/patches/ab.patch --no-check-certificate
    $ patch -p0 < ./ab.patch
    

    Done.

提交回复
热议问题