1.系统
[root@localhost zlib]# uname -a
Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
2.环境准备
yum install build-essential autoconf libtool -y
yum install make automake gcc gcc-c++ kernel-devel git -y
3.安装cmake
请参考centos7 cmake安装
4.下载grpc包
git clone https://github.com/grpc/grpc.git
5.下载依赖包
cd grpc
git submodule update --init
6.编译
make