04 2017 档案
摘要://header.html Title is {{.Title}} {{template "footer" .Body }} //footer.html {{define "footer"}}Body is {{.}}{{end}} //test.go package main import ( "
阅读全文
摘要:docker swarm init --advertise-addr <manage ip>docker swarm join-token worker/managerdocker service create --name redis --mode global --publish 6379:63
阅读全文
摘要: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
阅读全文
摘要:ipc{ 1.通信{ 数据传送{ pipe 传字节流 ,MessageQueue 传结构化消息对象 } 共享内存(最快) } 2.信号 Signal(唯一异步的IPC) 3.同步 semaphore (最重要)}exec 把一个新程序加载到自己内存中,替换数据段,代码段,堆,stack 父进程先结束
阅读全文
摘要:mac postgresql http://www.jianshu.com/p/107235684ad0 launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist brew updatebrew upgrade
阅读全文
摘要:systemctl list-unit-filessystemctl list-unitssystemctl –failedsystemctl is-enabled crond.servicesystemctl list-unit-files –type=servicesystemctl list-
阅读全文
摘要:https://github.com/urfave/negroni/ https://github.com/gorilla/mux godoc --http=:3000
阅读全文
摘要:lsof -i:8080 | awk 'NR>1{print $2}' | xargs kill
阅读全文

浙公网安备 33010602011771号