centos7编译goreplay1.0.0教程
安装golang
yum install golang
设置GOPROXY
export GOPROXY=https://goproxy.io
Fetch libpcap dependencies
yum install flex bison -y
安装libpcap1.7.4
wget http://www.tcpdump.org/release/libpcap-1.7.4.tar.gz && tar xzf libpcap-1.7.4.tar.gz
cd libpcap-1.7.4
./configure && make install
下载goreplay并编译
git clone https://github.com/buger/goreplay.git
cd goreplay
go build
最后生成了goreplay执行文件就完成了
来源:oschina
链接:https://my.oschina.net/valsong/blog/3198009