以下命令以访问淘宝网址为例,用户使用过程中可以将网址替换成任意网址。
1 2 |
httpress -n 1 http://taobao.com httpress -n 1 https://taobao.com |
1 2 |
httpress -c 1 http://taobao.com httpress -c 1 https://taobao.com |
1 2 |
httpress -t 1 http://taobao.com httpress -t 1 https://taobao.com |
1 2 |
httpress -z NORMAL http://taobao.com httpress -z NORMAL https://taobao.com |
1 2 |
httpress http://taobao.com httpress https://taobao.com |
非默认值是指请求数、线程数等可以自定义,并不局限于本文档以下给出的值。
1 2 |
httpress -n 10 http://taobao.com httpress -n 10 https://taobao.com |
1 2 |
httpress -n 2 -c 2 http://taobao.com httpress -n 2 -c 2 https://taobao.com |
1 2 |
httpress -n 2 -c 2 -t 2 http://taobao.com httpress -n 2 -c 2 -t 2 https://taobao.com |
1 2 |
httpress -k http://taobao.com httpress -k https://taobao.com |
1 2 |
httpress -q http://taobao.com httpress -q https://taobao.com |
1 2 |
httpress -z ABNORMAL http://taobao.com httpress -z ABNORMAL https://taobao.com |
1 2 |
httpress -n 2 -c 2 -t 2 -k -q -z ABNORMAL http://taobao.com httpress -n 2 -c 2 -t 2 -k -q -z ABNORMAL https://taobao.com |
1
|
httpress -n 3000000 -c 300 -t 30 http://IP:PORT1/index.html |
1
|
httpress -n 10000000 -c 300 -t 30 -k http://IP:PORT1/index.html |
1
|
httpress -n 100000 -c 300 -t 30 https://IP:PORT2/index.html |
1
|
httpress -n 10000000 -c 300 -t 30 -k https://IP:PORT2/index.html |
上述命令中IP地址表示Nginx服务器的IP地址,PORT1表示Nginx服务器的HTTP端口,PORT2表示Nginx服务器的HTTPS端口。