REF: Golang gRPC Example
Go installation
we should better build in a golang container
# https://go.dev/dl/go1.20.2.linux-amd64.tar.gz wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz # wget https://golang.org/dl/go1.18.linux-amd64.tar.gz rm -rf /usr/local/go && tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin # https://betterprogramming.pub/install-go-1-11-on-ubuntu-18-04-16-04-lts-8c098c503c5f echo 'export PATH=$PATH:/usr/local/go/bin' | tee -a $HOME/.profile or # https://www.fosslinux.com/68795/install-go-on-ubuntu.htm sudo apt install golang-go
install protobuf
go install google.golang.org/protobuf/cmd/[email protected] go install google.golang.org/grpc/cmd/[email protected]
标签:https,tar,GRPC,gz,golang,install,go,example From: https://www.cnblogs.com/shaohef/p/17537703.html