如何在没有域名的情况下使用Apache BenchMark?

时间:2018-01-19 11:45:41

标签: linux apache ubuntu server benchmarking

我的服务器没有任何域名 它只是一个后端api。 我打算用ip地址来使用它。

如何在没有域名的情况下测试基准测试?

an -n 1000 -c -10 http://ip_address

无效

1 个答案:

答案 0 :(得分:0)

将IP映射到/ etc / hosts

中的服务器名称
 phantom.local 10.0.0.7

然后执行

ab -n 555 -c -10 http://phantom.local -