ab出现apr_socket_recv错误:连接被拒绝(61) [英] ab is erroring out with apr_socket_recv: Connection refused (61)
本文介绍了ab出现apr_socket_recv错误:连接被拒绝(61)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在测试eventlet,但出现此错误:
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 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)...apr_socket_recv: Connection reset by peer (54)
Total of 2 requests completed
该网站在localhost:8090/上运行,并返回200 OK.
The website works at localhost:8090/ and returns 200 OK.
我在tomcat中遇到了同样的问题,网站再次正常运行.
I had the same issue with tomcat, again the website worked fine.
问题可能是什么?
推荐答案
我发现使用127.0.0.1而不是使用localhost:
I found using 127.0.0.1 rather than localhost worked:
ab -n 10 -c 1 http://127.0.0.1:8090/
更新: 可能是ab中的错误: https://groups.google.com/forum/#!msg/nodejs/TZU5H7MdoII/yivu0d4LMaAJ
Update: May have been a bug in ab: https://groups.google.com/forum/#!msg/nodejs/TZU5H7MdoII/yivu0d4LMaAJ
这篇关于ab出现apr_socket_recv错误:连接被拒绝(61)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文