grpc protoc 安装命令
首先得配置go的环境变量,配置后,执行下面命令后生成的bin会自动成为全局的命令,还要提前执行sudo apt-get install protobuf-compiler
go get -u google.golang.org/protobuf/cmd/protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
go mod tidy