go thrift demo
接口:https://gowalker.org/github.com/apache/thrift/lib/go/thrift
参考文件:https://cong.im/2018/05/14/other/rpc/thrift/
go 环境安装
wget -c https://studygolang.com/dl/golang/go1.15.1.linux-amd64.tar.gz tar -cvf go1.15.1.linux-amd64.tar.gz -C /usr/local/ 配置go环境变量
编译环境安装
yum install libevent-devel automake libtool flex bison gcc ant make boost* lrzsz gcc-c++ git python-devel
thrift 编译安装(只编译go环境)
wget http://www-us.apache.org/dist/thrift/0.10.0/thrift-0.10.0.tar.gz tar -xvf thrift-0.10.0.tar.gz cd thrift-0.10.0 ./configure --without-java --with-go --prefix=/usr make -j12 make install