goreplay HTTP-HTTPS流量复制工具

goreplay相比tcpcopy只能复制HTTP和HTTPS的流量

下载地址 https://github.com/buger/goreplay/releases

这里使用的gor_0.16.1_x64.tar.gz解压后可以直接使用

 

192.168.1.2 线上服务器

192.168.1.3 测试服务器

192.168.1.2 192.168.1.3执行

nohup python -m SimpleHTTPServer 8055 &

192.168.1.2

./goreplay --input-raw :8055 --output-http "http://192.168.1.3:8055"

访问192.168.1.2:8055可以看到192.168.1.3:8055也有日志

猜你喜欢

转载自www.cnblogs.com/cainiaoit/p/8888415.html