1.下载thrift并解压
2.切换到root账户安装thrift依赖包
yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
3.切换到thrift所在文件夹编译thrift
cd thrift-0.8.0 ./configure sudo make sudo make install
安装成功,运行thrift命令会提示相应参数
参考文献: