04 2017 档案

摘要://header.html Title is {{.Title}} {{template "footer" .Body }} //footer.html {{define "footer"}}Body is {{.}}{{end}} //test.go package main import ( " 阅读全文
posted @ 2017-04-25 17:41 anjunact 阅读(1171) 评论(0) 推荐(0)
摘要:docker swarm init --advertise-addr <manage ip>docker swarm join-token worker/managerdocker service create --name redis --mode global --publish 6379:63 阅读全文
posted @ 2017-04-23 09:17 anjunact 阅读(215) 评论(0) 推荐(0)
摘要:CentOS 7 升级内核到4.4.6 LTSrpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.orgrpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch 阅读全文
posted @ 2017-04-23 08:13 anjunact 阅读(1660) 评论(2) 推荐(0)
摘要:ipc{ 1.通信{ 数据传送{ pipe 传字节流 ,MessageQueue 传结构化消息对象 } 共享内存(最快) } 2.信号 Signal(唯一异步的IPC) 3.同步 semaphore (最重要)}exec 把一个新程序加载到自己内存中,替换数据段,代码段,堆,stack 父进程先结束 阅读全文
posted @ 2017-04-22 14:51 anjunact 阅读(111) 评论(0) 推荐(0)
摘要:mac postgresql http://www.jianshu.com/p/107235684ad0 launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist brew updatebrew upgrade 阅读全文
posted @ 2017-04-21 20:46 anjunact 阅读(138) 评论(0) 推荐(0)
摘要:systemctl list-unit-filessystemctl list-unitssystemctl –failedsystemctl is-enabled crond.servicesystemctl list-unit-files –type=servicesystemctl list- 阅读全文
posted @ 2017-04-20 08:05 anjunact 阅读(138) 评论(0) 推荐(0)
摘要:mvn clean cobertura:cobertura 阅读全文
posted @ 2017-04-19 17:23 anjunact 阅读(104) 评论(0) 推荐(0)
摘要:https://github.com/urfave/negroni/ https://github.com/gorilla/mux godoc --http=:3000 阅读全文
posted @ 2017-04-14 22:45 anjunact 阅读(188) 评论(0) 推荐(0)
摘要:lsof -i:8080 | awk 'NR>1{print $2}' | xargs kill 阅读全文
posted @ 2017-04-12 09:05 anjunact 阅读(98) 评论(0) 推荐(0)