目录
https://github.com/grpc/grpc/blob/master/INSTALL.md
git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
cd grpc
git submodule update --init
make
[sudo] make install
然后
https://github.com/grpc/grpc/tree/master/examples/cpp
先安装protoc
cd third_party/protobuf/
make
make install
然后编译demo
cd examples/cpp/helloworld
make
启动server
./greeter_server
./greeter_async_server # 异步
启动client
greeter_client
greeter_async_client #异步
greeter_async_client2 #异步
https://github.com/grpc/grpc/blob/master/examples/cpp/cpptutorial.md