摘要: 转载 https://www.cnblogs.com/YaoDD/p/5504881.html 1、安装gRPC runtime 为了自动生成Golang的gRPC代码,需要安装protocal buffers compiler以及对应的GoLang插件 2、protocal buffer安装 从h 阅读全文
posted @ 2018-12-04 15:49 一沐春风 阅读(323) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "sync" ) func print(idx int, wg *sync.WaitGroup) { fmt.Printf("index %d: \n", idx) wg.Done() } func main() { var wg sync.WaitGroup for i := 0; i... 阅读全文
posted @ 2018-12-04 10:08 一沐春风 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-12-04 10:00 一沐春风 阅读(162) 评论(0) 推荐(0) 编辑
摘要: apt-get install git 配置用户名及邮箱 git config --global user.name "yourName" git config --global user.email "yourAddress" 生成密钥: ssh-keygen -C 'yourAddress' - 阅读全文
posted @ 2018-12-04 09:57 一沐春风 阅读(106) 评论(0) 推荐(0) 编辑
摘要: apt-get update apt-get install openssh-server 修改配置文件 vim /etc/ssh/sshd_config -> PermitRootLogin without password 修改为PermitRootLogin yes 重启服务 service 阅读全文
posted @ 2018-12-04 09:52 一沐春风 阅读(223) 评论(0) 推荐(0) 编辑
摘要: [share] comment = Share Stuff path = /usr/work browseable = yes public = yes guest ok = yes security = share create mask = 0777 writable = yes directo 阅读全文
posted @ 2018-12-04 09:46 一沐春风 阅读(426) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" func main(){ fmt.Println("hello world") } 阅读全文
posted @ 2018-12-04 09:29 一沐春风 阅读(113) 评论(0) 推荐(0) 编辑