EMQ并发测试

yum install -y git
git clone https://github.com/emqtt/emqtt_benchmark.git
cd /home/emqtt_benchmark
make

  以上是emqtt_benchmark安装

先安装git,下载emqtt_benchmark(下载到/home目录)

  • 测试命令
#用户名和密码
./emqtt_bench_pub  -h 172.18.40.43 -u lpmqtt -P password -p 1883 -c 35000 -I 10 -t bench21/%i -s 256
#无用户名和密码
./emqtt_bench_pub  -h 172.16.40.20 -p 1883 -c 35000 -I 10 -t bench21/%i -s 256

  

原文地址:https://www.cnblogs.com/saryli/p/9767235.html