go-zero安装测试

好未来推出的go-zero是一个集成了各种工程实践的web和rpc框架

地址: https://github.com/tal-tech/go-zero

etcd安装

docker run -d -v /usr/share/ca-certificates/:/etc/ssl/certs -p 4001:4001 -p 2380:2380 -p 2379:2379 \
 --name etcd quay.io/coreos/etcd:v2.3.8 \
 -name etcd0 \
 -advertise-client-urls http://${HostIP}:2379,http://${HostIP}:4001 \
 -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \
 -initial-advertise-peer-urls http://${HostIP}:2380 \
 -listen-peer-urls http://0.0.0.0:2380 \
 -initial-cluster-token etcd-cluster-1 \
 -initial-cluster etcd0=http://${HostIP}:2380 \
 -initial-cluster-state new

其他go环境,mysql,redis 请自行找文档

安装protoc, https://github.com/protocolbuffers/protobuf/releases 下载相应的版本,这里下载的 *-win64.zip, 解压后,放到你go path的bin目录即可

标签: 无

发表评论: