Unable to start netperf server

Unable to start netperf server

我在 Ubuntu 12.10 上工作,我刚刚安装了 netperf apt-get install netperf。然后我尝试通过运行启动 netperf 服务器netserver,结果Unable to start netserver with 'IN(6)ADDR_ANY' port '12865' and family AF_UNSPEC

有人能帮助我吗?我在 netperf FAQ 中没有找到任何相关信息。

答案1

While netserver's behavior seems to be somewhat unusual on Ubuntu, I think that you may find the netserver service to be already running.
If you run a ps -ef | grep netserver, you may find the process already running and you should be able to perform netperf queries against it.

Upon installing netperf on my local machine, I was able to run netperf with several flags set and get results back.

答案2

If you wish to stop the netserver so you can start it with other options, service netperf stop should work, if memory serves.

And while you are running tests, do keep in mind there is more to the networked performance of a system than bulk transfer, so be certain to give the *_RR tests (especially TCP_RR) some attention.

答案3

I faced the same problem. This problem exist because the default port number is already occupied by the system.

sudo netserver -p 50000

(here you can use other free port number available in your system)

This solves my Problem.

答案4

None of this worked for me. In the end I had to specify the actual ip to listen like this.

netserver -4 -L 192.168.0.1

相关内容