gRPC

Summary: Author: 张亚飞 | Read Time: 1 minute read | Published: 2018-03-30
Filed under Categories: LinuxTags: Note,

Learn gRPC

安装环境

  • MacOS
brew install protobuf
protoc --version
  • Linux
git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
git checkout v3.14.0
git submodule update --init --recursive
yum install libtool
./autogen.sh

./configure
make
make check
make install # root
ldconfig # refresh shared library cache.
protoc --version
  • protoc-gen-go
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
  • grpcurl
brew install grpcurl
grpcurl --version

Comments

Cor-Ethan, the beverage → www.iirii.com