wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gztar zxvf protobuf-2.6.1.tar.gz cd protobuf-2.6.1./configure make make install protoc -h go get github.com/golang/protobuf/protoc-gen-go cd github.com/golang/proto
#部署im1. 安装go编译环境参考链接:https://golang.org/doc/install 2. 下载im_service代码 cd $GOPATH/src/github.com/GoBelieveIO git clone https://github.com/GoBelieveIO/im_service.git 3 编译proto文件 cd im_service //注意需要FQ go get google.golang.org/grpc go get -u github.com/
wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz sudo tar -zxvf go1.12.4.linux-amd64.tar.gz -C /opt 检查安装是否成功 cd /opt/go/bin ./go version go version go1.12.4 linux/amd64 设置环境变量 vi /etc/profile export GOROOT=/opt/go export GOPATH=/home/ubuntu/