我正在测试 eventlet,但收到此错误:
~>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。
我在使用 tomcat 时遇到了同样的问题,但网站仍然运行良好。
问题可能是什么?
最佳答案
我发现使用 127.0.0.1 而不是 localhost 有效:
ab -n 10 -c 1 http://127.0.0.1:8090/
更新: 可能是 ab 中的错误:https://groups.google.com/forum/#!msg/nodejs/TZU5H7MdoII/yivu0d4LMaAJ
关于apachebench - ab 出现 apr_socket_recv : Connection refused (61) 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7938869/