git clone https://github.com/wg/wrk.git cd wrk make # 将可执行文件移动到 /usr/local/bin 位置 sudo cp wrk /usr/local/bin
查看版本:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[root@node1 wrk]/# wrk -v wrk 4.1.0-8-ga211dd5 [epoll] Copyright (C) 2012 Will Glozer Usage: wrk <options><url> Options: -c, --connections <N> Connections to keep open -d, --duration <T> Duration of test -t, --threads <N> Number of threads to use