摘要: 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 阅读(199) 评论(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 阅读(1645) 评论(2) 推荐(0) 编辑
摘要: ipc{ 1.通信{ 数据传送{ pipe 传字节流 ,MessageQueue 传结构化消息对象 } 共享内存(最快) } 2.信号 Signal(唯一异步的IPC) 3.同步 semaphore (最重要)}exec 把一个新程序加载到自己内存中,替换数据段,代码段,堆,stack 父进程先结束 阅读全文
posted @ 2017-04-22 14:51 anjunact 阅读(101) 评论(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 阅读(130) 评论(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 阅读(136) 评论(0) 推荐(0) 编辑
摘要: mvn clean cobertura:cobertura 阅读全文
posted @ 2017-04-19 17:23 anjunact 阅读(97) 评论(0) 推荐(0) 编辑
摘要: https://github.com/urfave/negroni/ https://github.com/gorilla/mux godoc --http=:3000 阅读全文
posted @ 2017-04-14 22:45 anjunact 阅读(176) 评论(0) 推荐(0) 编辑
摘要: lsof -i:8080 | awk 'NR>1{print $2}' | xargs kill 阅读全文
posted @ 2017-04-12 09:05 anjunact 阅读(91) 评论(0) 推荐(0) 编辑
摘要: log_errors = on error_log = /a/b.txt 如果只开 log_errors 会把错记录到web服务器log中 阅读全文
posted @ 2017-02-14 17:53 anjunact 阅读(104) 评论(0) 推荐(0) 编辑
摘要: http://docs.scala-lang.org/tutorials/scala-with-maven.html https://github.com/davidB/scala-archetype-simple mvn archetype:generate -B -DarchetypeGroup 阅读全文
posted @ 2017-01-06 21:08 anjunact 阅读(148) 评论(0) 推荐(0) 编辑