Skip to content

Latest commit

 

History

History
executable file
·
52 lines (31 loc) · 615 Bytes

README.md

File metadata and controls

executable file
·
52 lines (31 loc) · 615 Bytes

#skyintface

1. 加载外部库

加载protobuf

protoc-gen-go:

source profile

go get github.com/golang/protobuf/protoc-gen-go

cd github.com/golang/protobuf/protoc-gen-go

go build

go install

vi /etc/profile 将$GOPATH/bin #加入环境变量
source profile

​ proto:

go get github.com/golang/protobuf/proto
cd github.com/golang/protobuf/proto
go build
go install

加载redis

cd $GOPATH/src
go get github.com/alphazero/Go-Redis
cd redis
go install

2.构建主题程序

​ go build main

3.构建模拟客户端

​ go build client