[转]CentOS7 中使用NTP进行时间同步

2015-11-04 “CentOS7 中使用NTP进行时间同步”:/blog.csdn.net/scorpio3k/article/details/49645219

NTP时钟同步方式说明
NTP在Linux下有两种时钟同步方式,分别为直接同步和平滑同步:
直接同步
使用ntpdate命令进行同步,直接进行时间变更。如果服务器上存在一个12点运行的任务,当前服务器时间是13点,但标准时间时11点,使用此命令可能会造成任务重复执行。因此使用ntpdate同步可能会引发风险,因此该命令也多用于配置时钟同步服务时第一次同步时间时使用。
平滑同步
使用ntpd进行时钟同步,可以保证一个时间不经历两次,它每次同步时间的偏移量不会太陡,是慢慢来的,这正因为这样,ntpd平滑同步可能耗费的时间比较长。

标准时钟同步服务
/www.pool.ntp.org/zone/cn网站包含全球的标准时间同步服务,也包括对中国时间的同步,对应的URL为cn.pool.ntp.org,在其中也描述了ntp配置文件中的建议写法:
server 1.cn.pool.ntp.org
server 3.asia.pool.ntp.org
server 2.asia.pool.ntp.org

yum -y install ntp
systemctl enable ntpd
systemctl start ntpd
ntpdate -u cn.pool.ntp.org
ntpq -p
ntpstat

(604) 357-3004

1998年6月1日,随表哥一起到了深圳大阿姨家,转眼已经19个年头。
找到了自己的另一半,有了小孩。
经历了各种租房、搬家、换房。
工作、职位随着经验、能力、视野而不断在变化。
自己也在不断的学习中成长。

19年斗转星移。
后面,要继续照顾好家人,尝试在人工智能中有所贡献。

书单

“Unified Modeling Language™ (UML®)”/www.omg.org/spec/UML/index.htm
“Docker – Build, Ship, and Run Any App, Anywhere”:/www.docker.com/ “GitHub”:/github.com/docker/docker
“Kubernetes”:/kubernetes.io/ “GitHub”:/github.com/kubernetes/kubernetes
“Hystrix”:/github.com/Netflix/Hystrix/wiki
“Hadoop”:/hadoop.apache.org/ “GitHub”:/github.com/apache/hadoop
“HBase”:/hbase.apache.org/ “GitHub”:/github.com/apache/hbase
“Spark”:/spark.apache.org/ “GitHub”:/github.com/apache/spark
“Jenkins”:/jenkins.io/index.html
“Elasticsearch”:/www.elastic.co/products/elasticsearch “Logstash”:/www.elastic.co/products/logstash “Kibana”:/www.elastic.co/products/kibana
“Node.js”:/nodejs.org/en/ “GitHub”:/github.com/nodejs/node
“Express”:/expressjs.com/ “GitHub”:/github.com/expressjs/express | “hapi”:/hapijs.com/ “GitHub”:/github.com/hapijs/hapi
“AngularJS”:/github.com/angular/angular.js
“React”:/github.com/facebook/react redux
“Ionic: Advanced HTML5 Hybrid Mobile App Framework”:/ionicframework.com/ “GitHub”:/github.com/driftyco/ionic
“Babel · The compiler for writing next generation JavaScript”:/babeljs.io/ “GitHub”:/github.com/babel/babel
“Microservice architecture”:/microservices.io/
“DockOne.io”:/dockone.io/
“GitLab”:/about.gitlab.com/ “Gitlab Community Edition 镜像使用帮助”:/mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/ “download”:/about.gitlab.com/downloads/#ubuntu1604
“Wechaty”:/github.com/wechaty/wechaty
“微信聊天机器人 – 个人账号版”:/github.com/lyyyuna/wechat_robot
“网页微信客户端封包大全”:/github.com/xiangzhai/qwx/blob/master/doc/protocol.md
“技术雷达 Technology Radar(需要翻墙)”:/www.thoughtworks.com/radar/techniques
“Microsoft .NET SDK For Hadoop”:/hadoopsdk.codeplex.com/
“Microsoft® Hive ODBC Driver”:/www.microsoft.com/en-us/download/details.aspx?id=40886
“Microsoft® Spark ODBC Driver”:/www.microsoft.com/en-us/download/details.aspx?id=49883
“Hadoop for .NET Developers”:/blogs.msdn.microsoft.com/data_otaku/2013/08/14/hadoop-for-net-developers/
“OSGi.NET 最简单强大的插件框架 – iOpenWorks.com”:/www.iOpenWorks.com “文档”:/www.iopenworks.com/Documents/DocumentsList “视频”:/www.iopenworks.com/Documents/DocumentsList/UserGuide_OSGi_Design_Overview “介绍”:/www.cnblogs.com/baihmpgy/archive/2010/05/05/1727626.html
“KVM”:/help.ubuntu.com/community/KVM
“Consul”:/www.consul.io/intro/getting-started/install.html
“Consul.NET”:/github.com/PlayFab/consuldotnet
“问卷星”:/www.sojump.com/intro.aspx
“调查派”:/www.diaochapai.com/price

2015-08-20 “微服务实战,第 1 部分: 微服务介绍”:/www.ibm.com/developerworks/cn/cloud/library/cl-microservices-in-action-part-1/
2015-12-21 “微服务实战,第 2 部分: 容器和微服务 — 完美的一对”:/www.ibm.com/developerworks/cn/cloud/library/cl-bluemix-microservices-in-action-part-2-trs/

*”微服务实战 Introduction to Microservices”:/www.nginx.com/blog/introduction-to-microservices/*
2015-05-19 “微服务实战(一):微服务架构的优势与不足”:/dockone.io/article/394 “Introduction to Microservices”:/www.nginx.com/blog/introduction-to-microservices/?utm_source=service-discovery-in-a-microservices-architecture&utm_medium=blog
2015-06-15 “微服务实战(二):使用API Gateway”:/dockone.io/article/482 “Building Microservices: Using an API Gateway”:/www.nginx.com/blog/building-microservices-using-an-api-gateway/?utm_source=service-discovery-in-a-microservices-architecture&utm_medium=blog
2015-07-24 “微服务实战(三):深入微服务架构的进程间通信”:/dockone.io/article/549 “Building Microservices: Inter-Process Communication in a Microservices Architecture”:/www.nginx.com/blog/building-microservices-inter-process-communication/?utm_source=service-discovery-in-a-microservices-architecture&utm_medium=blog
2015-10-12 “微服务实战(四):服务发现的可行方案以及实践案例”:/dockone.io/article/771 “Service Discovery in a Microservices Architecture”:/www.nginx.com/blog/service-discovery-in-a-microservices-architecture/
2015-12-04 “微服务实践(五):微服务的事件驱动数据管理”:/dockone.io/article/936 “Event-Driven Data Management for Microservices”:/www.nginx.com/blog/event-driven-data-management-microservices/?utm_source=service-discovery-in-a-microservices-architecture&utm_medium=blog
2016-02-10 “微服务实战(六):选择微服务部署策略”:/dockone.io/article/1066 “Choosing a Microservices Deployment Strategy”:/www.nginx.com/blog/deploying-microservices/?utm_source=service-discovery-in-a-microservices-architecture&utm_medium=blog
2016-03-08 “微服务实践(七):从单体式架构迁移到微服务架构”:/dockone.io/article/1266 “Refactoring a Monolith into Microservices”:/www.nginx.com/blog/refactoring-a-monolith-into-microservices/?utm_source=service-discovery-in-a-microservices-architecture&utm_medium=blog

“JSON Web Token (JWT)”:/tools.ietf.org/html/draft-ietf-oauth-json-web-token-32
“JSON Web Tokens(JWT)教程”:/www.jdon.com/artichect/json-web-tokens.html
“使用JSON Web Tokens和Spring实现微服务”:/www.jdon.com/dl/best/json-web-tokens-spring-cloud-microservices.html

*kvm虚拟化学习笔记*
2013-09-04 “kvm虚拟化学习笔记(一)之kvm虚拟化环境安装”:/koumm.blog.51cto.com/703525/1288795
2013-09-05 “kvm虚拟化学习笔记(二)之Linux kvm虚拟机安装”:/koumm.blog.51cto.com/703525/1289627
2013-09-06 “kvm虚拟化学习笔记(三)之windows kvm虚拟机安装”:/koumm.blog.51cto.com/703525/1290191
2013-09-06 “kvm虚拟化学习笔记(四)之kvm虚拟机日常管理与配置”:/koumm.blog.51cto.com/703525/1290269
2013-09-07 “kvm虚拟化学习笔记(五)之windows虚拟机性能调整”:/koumm.blog.51cto.com/703525/1290682
2013-09-08 “kvm虚拟化学习笔记(六)之kvm虚拟机控制台登录配置”:/koumm.blog.51cto.com/703525/1290996
2013-09-08 “kvm虚拟化学习笔记(七)之kvm虚拟机克隆”:/koumm.blog.51cto.com/703525/1291793
2013-09-08 “kvm虚拟化学习笔记(八)之kvm虚拟机vnc配置”:/koumm.blog.51cto.com/703525/1291803
2013-09-08 “kvm虚拟化学习笔记(九)之kvm虚拟机时间配置”:/koumm.blog.51cto.com/703525/1291862
2013-09-08 “kvm虚拟化学习笔记(十)之kvm虚拟机快照备份”:/koumm.blog.51cto.com/703525/1291893
2013-09-08 “kvm虚拟化学习笔记(十一)之kvm虚拟机扩展磁盘空间”:/koumm.blog.51cto.com/703525/1292146
2013-09-12 “kvm虚拟化学习笔记(十二)之kvm linux虚拟机在线扩展磁盘”:/koumm.blog.51cto.com/703525/1295296
2013-09-18 “kvm虚拟化学习笔记(十三)之kvm虚拟机磁盘文件读取小结”:/koumm.blog.51cto.com/703525/1298845
2013-09-18 “kvm虚拟化学习笔记(十四)之kvm虚拟机静态迁移”:/koumm.blog.51cto.com/703525/1298852
2013-09-23 “kvm虚拟化学习笔记(十五)之kvm虚拟机动态迁移”:/koumm.blog.51cto.com/703525/1300783
2013-10-03 “kvm虚拟化学习笔记(十六)之kvm虚拟化存储池配置”:/koumm.blog.51cto.com/703525/1304196
2013-10-03 “kvm虚拟化学习笔记(十七)之KVM到KVM之v2v迁移”:/koumm.blog.51cto.com/703525/1304271
2013-10-04 “kvm虚拟化学习笔记(十八)之ESXi到KVM之v2v迁移”:/koumm.blog.51cto.com/703525/1304461
2013-10-07 “kvm虚拟化学习笔记(十九)之convirt集中管理平台搭建”:/koumm.blog.51cto.com/703525/1305553
2013-10-09 “kvm虚拟化学习笔记(二十)之convirt安装linux系统”:/koumm.blog.51cto.com/703525/1306526

2006-07-20 “运用RUP 4+1视图方法进行软件架构设计”:/www.ibm.com/developerworks/cn/rational/06/r-wenyu/index.html
2008-11-09 “UML中的用例图是静态图还是动态图?UML规范给出答案”:/blog.csdn.net/liguisen/article/details/3260114
2010-03-17 “持续集成(第二版)”:/article.yeeyan.org/view/2251/94882 2006-05-01 “Continuous Integration”:/www.martinfowler.com/articles/continuousIntegration.html
2010-09-17 “windows下如何github ssh 公钥”:/www.cnblogs.com/igrl/archive/2010/09/17/1829358.html
2011-12-18 “如何查看系统的SHELL类型”:/blog.csdn.net/weilaiqing/article/details/7082782
2012-01-15 “SVN迁移到Git的过程(+ 一些技巧)”:/www.cnblogs.com/h2zZhou/p/6136913.html
2012-04-27 “怎么修改project2003中项目日历的默认工作时间,例如工作开始时间8点变为9点”:/zhidao.baidu.com/link?url=4h0f8nqrCGIZukjWYDx9FUM7UQa0ObPdtZVwNt1JW7PWM19-kHBA-4HGYRdxGRHBi7JGLtD0PtmdDDMhwkIqI_
2012-10-31 “Ubuntu12.04下resolv.conf重启机器后失效的问题解决”:/blog.sina.com.cn/s/blog_484d87770101czlr.html
2012-11-19 “ubuntu 添加管理员账号”:/blog.csdn.net/codebistu/article/details/8200908
2012-11-26 “用Kettle的一套流程完成对整个数据库迁移”:/ainidehsj.iteye.com/blog/1735434
2013-01-18 “KVM下桥接的设置(Ubuntu)”:/www.linuxidc.com/Linux/2013-01/78115.htm
2013-02-04 “Flume日志收集”:/blog.csdn.net/zhouleilei/article/details/8568147/
2013-03-31 “kvm之ubuntu”:/www.cnblogs.com/isohybrid/archive/2013/03/31/kvm.html
2013-06-07 “大话科技No.2:产品经理/码农/设计师的3P战争”:/www.huxiu.com/article/15543/1.html
2013-06-21 “大话科技No.3:一个流氓眼中的物联网”:/www.huxiu.com/article/16197/1.html
2013-07-16 “Ubuntu下ssh服务的安装与登陆(ssh远程登陆)”:/blog.csdn.net/zht666/article/details/9340633
2013-07-18 “大话科技No.4:只有韦小宝最适合当产品经理”:/www.huxiu.com/article/17409/1.html
2013-07-22 “Kettle 实现mysql数据库不同表之间数据同步”:/www.cnblogs.com/inuyasha1027/p/kettle_mysql_dataSynchronize.html
2013-07-30 “大话科技No.5:面部识别,“禽兽,放开那个流氓!””:/www.huxiu.com/article/17947/1.html
2013-08-01 “软件设计之UML—UML中的六大关系”:/www.cnblogs.com/hoojo/p/uml_design.html
2013-08-12 “大话科技No.6:可穿戴设备,剑指未来的一场春梦”:/www.huxiu.com/article/18627/1.html
2013-08-30 “软件设计之UML—UML的构成[上]”:/www.cnblogs.com/hoojo/p/UML_design_constitute_example.html
2013-09-04 “大话科技No.7:骨传导技术,让女神上车不再睡觉”:/www.huxiu.com/article/19851/1.html
2013-09-05 “kvm使用以及网络设置 解决桥接网络主机不能上网”:/blog.csdn.net/yao219/article/details/11124687
2013-09-18 “大话科技No.8:大数据!你能在色情行业里做什么!”:/www.huxiu.com/article/20528/1.html
2013-10-25 “大话科技No.9:NFC技术,爱就贴一起,异地恋去死”:/www.huxiu.com/article/21996/1.html
2013-10-27 “OpenSSL 命令”:/blog.csdn.net/as3luyuan123/article/list/4
2013-11-21 “Zero Downtime, Instant Deployment and Rollback”:/www.ebaytechblog.com/2013/11/21/zero-downtime-instant-deployment-and-rollback/
2014-01-01 “中国互联网网站统计史”:/my.oschina.net/leejun2005/blog/269292
2014-03-04 “Kettle 与 Talend Open Studio 的 ETL 比较以及其它ETL工具”:/blog.csdn.net/zkq1989/article/details/20456449
2014-03-10 “Microservices a definition of this new architectural term”:/martinfowler.com/articles/microservices.html
2014-03-20 “使用 Node.js、Express、AngularJS 和 MongoDB 构建一个实时问卷调查应用程序”:/www.tuicool.com/articles/R7vaMr
2014-03-27 “svn 迁移到git下全过程”:/www.aikaiyuan.com/6584.html
2014-05-12 “理解OAuth 2.0”:/www.ruanyifeng.com/blog/2014/05/oauth_2_0.html
2014-05-14 “大型网站架构演变和知识体系”:/kb.cnblogs.com/page/207824/
2014-05-15 “push推送的5个真相和5个误区”:/www.appying.com/game/push-zhengxiang/
2014-06-18 “Docker微容器+微服务将颠覆传统的软件架构”:/www.jdon.com/46474
2014-07-09 “微信聊天记录怎么提取”:/zhidao.baidu.com/link?url=D8UifUcXIzd_OF4CQkruUESv_GRvkYT58rWlrqkI2z6_CTkbXn28ab90b0lz-yNxU_rF-R8dCV_kkYYfvaLK4e97UD-ZcbMJH5veJWrMHn_
2014-07-12 “微服务(Microservices)”:/blog.csdn.net/wurenhai/article/details/37659335/
2014-08-02 “使用Docker建立一个动态负载平衡的分布式Web系统”:/www.jdon.com/46580
2014-08-02 “Docker学习笔记(1)– 如何安装Docker”:/blog.csdn.net/we_shell/article/details/38352837
2014-08-04 “Docker学习笔记(2)–Docker常用命令”:/blog.csdn.net/we_shell/article/details/38368137
2014-08-08 “Docker学习笔记(3)– 如何使用Dockerfile构建镜像”:/blog.csdn.net/we_shell/article/details/38445979
2014-08-17 “微服务实战中的那些“坑””:/www.jdon.com/46621
2014-08-23 “GitLab版本管理”:/www.cnblogs.com/wintersun/p/3930900.html
2014-10-15 “阿里云Ubuntu环境搭建Docker服务”:/blog.csdn.net/minimicall/article/details/40108305 “2”:/blog.csdn.net/minimicall/article/details/40119177 “3”:/bbs.aliyun.com/read/152090.html?ordertype=desc&displayMode=1
2014-10-30 “Kubernetes系统架构简介”:/www.infoq.com/cn/articles/Kubernetes-system-architecture-introduction?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global
2014-10-30 “Kubernetes初探”:/blog.csdn.net/zhangjun2915/article/details/40598151
2014-12-22 “基于kubernetes构建Docker集群管理详解”:/blog.liuts.com/post/247/
2014-12-24 “Ubuntu14.04下如何配置固定IP”:/jingyan.baidu.com/article/e5c39bf5bbe0e739d7603396.html
2014-05-15 “Docker Dockerfile详解”:/blog.csdn.net/wsscy2004/article/details/25878223
2014-05-15 “常用docker命令,及一些坑”:/blog.csdn.net/wsscy2004/article/details/25878363
2014-05-16 “Docker Container同时启动多服务”:/blog.csdn.net/wsscy2004/article/details/25980675
2014-07-23 “git服务器gitlab之搭建和使用”:/blog.csdn.net/zy416548283/article/details/38057925
2014-08-23 “GitLab版本管理”:/www.cnblogs.com/wintersun/p/3930900.html
2015-01-24 “干货:华为花3000万引进的BLM模型”:/www.360doc.com/content/15/0127/20/11190693_444278892.shtml
2015-01-26 “使用容器技术来建立一个微服务架构”:/www.csdn.net/article/2015-01-26/2823711
2015-02-03 “Docker 特权参数 privileged”:/blog.csdn.net/halcyonbaby/article/details/43499409
2015-02-09 “为什么RESTful微服务和异步编程是一种趋势”:/zhidao.baidu.com/link?url=X5wRu3q2A9iq15a_91yUpm1B5glRqNXu3mePM6wBdjylIyssQ9YSUvHX3D2XO2bszcOG1hvWLBTmx2ZXGMxJ-Wau3Fl_olwg4olkLeZHMSy
2015-03-06 “Docker的四种网络方式”:/www.open-open.com/lib/view/open1425625410243.html
2015-04-19 “Google发布论文 披露大规模集群管理工具Borg的细节”:/www.infoq.com/cn/news/2015/04/google-borg/
2015-04-24 “生产环境下如何部署Docker Registry”:/dockone.io/article/338?utm_source=tuicool&utm_medium=referral
2015-05-02 “Windows10下搭建汇编语言开发环境(利用DOSBOX和MASM32)”:/blog.csdn.net/doniexun/article/details/45438457
2015-05-08 “CDH5.4 VS HDP2.2”:/www.vesense.com/archives/801
2015-05-12 “使用Angular JS + Express JS入门搭建网站”:/www.chinaz.com/web/2015/0512/405473.shtml
2015-05-12 “谷歌的容器之路:从Borg到Kubernetes”:/www.infoq.com/cn/news/2015/05/Kubernetes-Borg-Eurosys/
2015-05-14 “How To Control User Identity Within Microservices”:/nordicapis.com/how-to-control-user-identity-within-microservices/
2015-05-26 “google集群操作系统borg”:/www.open-open.com/lib/view/open1432535373066.html
2015-07-03 “全方位对比Mesos、Omega和Borg”:/www.infoq.com/cn/articles/comparison-of-mesos-omega-and-borg/
2015-07-03 “openssl签署自己的泛域名(通配符)证书”:/colinzhouyj.blog.51cto.com/2265679/1670634/
2015-07-08 “让日志变得神奇 — 云中使用 Docker 的 Elasticsearch:看看如何使用 IBM Containers 在 Bluemix 上轻松地管理您自己的 ELK 堆栈”:/jamesthom.as/blog/2015/07/08/making-logs-awesome-with-elasticsearch-and-docker/
2015-08-02 “分布式服务注册和发现consul 简要介绍”:/www.cnblogs.com/shanyou/p/4695131.html
2015-08-06 “Docker建立容器后在宿主机上的规则”:/bingotree.cn/?p=826&utm_source=tuicool&utm_medium=referral
2015-08-09 “使用C# 和Consul进行分布式系统协调”:/www.cnblogs.com/shanyou/p/4714838.html
2015-08-13 “Push!请给用户一个打开APP的理由”/36kr.com/p/5036352.html
2015-08-13 “Ubuntu安装OpenSSL”:/wangzhijian.blog.51cto.com/6427016/1684454
2015-09-06 “JSON Web Token – 在Web应用间安全地传递信息”:/blog.leapoahead.com/2015/09/06/understanding-jwt/
2015-09-07 “八幅漫画理解使用JSON Web Token设计单点登录系统”:/blog.leapoahead.com/2015/09/07/user-authentication-with-jwt/
2015-09-15 “服务发现:Zookeeper vs etcd vs Consul”:/mp.weixin.qq.com/s?__biz=MzA5OTAyNzQ2OA==&mid=208173179&idx=1&sn=392c17b136c2bf570429785702d98353&scene=0&key=dffc561732c226516d4dccb1f165c5b24e823a11384b262d55dc20e3bd0d4cd21c219e8fc2bb2817fd3ccd46f36db04a&ascene=14&uin=ODY5ODkzMzQw&devicetype=iPhone+OS8.4.1&version=16020610&nettype=WIFI&fontScale=100&pass_ticket=yxu6Cmc0yX5TWpekVDtFbQhGNYo%2BPbTVmjkpYiq2xiXv6Mbhq3rZUqZkbefMNm11
2015-09-16 “Ubuntu14.04+KVM配置虚拟机桥接(bridge)”:/blog.csdn.net/FIELDOFFIER/article/details/48497833
2015-10-28 “Docker Registry V2(distribution) & Proxy(nginx) 的搭建经历”:/unixman.blog.51cto.com/10163040/1707423
2015-10-29 “Docker私有仓库Registry的搭建验证”:/www.cnblogs.com/lienhua34/p/4922130.html
2015-11-19 “有关Docker的八个令人难以置信的事实”:/developer.51cto.com/art/201511/497865.htm
2015-12-06 “linux安装nginx并设置https(openssl)”:/blog.csdn.net/guestcode/article/details/50194357
2015-12-21 “Package has no installation candidate解决方法”:/blog.csdn.net/lan120576664/article/details/50373571
2016-01-01 “浅谈用户行为分析之用户身份识别:cookie 知多少?”:/my.oschina.net/leejun2005/blog/521851
2016-01-08 “.NET开发者启程Docker之路”:/my.oschina.net/kernalsky/blog/599345
2016-01-14 “如何使用Docker开源仓库建立代理缓存仓库”:/zhidao.baidu.com/question/1769171559541258780.html
2016-02-17 “漫谈ELK在大数据运维中的应用”:/blog.csdn.net/lively1982/article/details/50678657
2016-02-21 “U盘EFI模式启动电脑安装win10时出现这个无法继续安装 如何处理”:/zhidao.baidu.com/question/2010497871355199668.html
2016-03-01 “使用 Docker 容器应该避免的 10 个事情”:/www.oschina.net/translate/10-things-to-avoid-in-docker-containers
2016-03-22 “【Docker实战】Registry & Portus搭建详解”:/dockone.io/article/1151
2016-04-05 “Kubernetes集群高可用方案”:/mt.sohu.com/20160405/n443344559.shtml
2016-04-23 “Apache Hadoop与第三方Hadoop-CDH,HDP,MapR的分析与比较”:/www.lishiyu.cn/post/58.html
2016-05-29 “阿里云ECS+CentOS 7.0+Docker+Redmine环境搭建”:/www.cnblogs.com/iluzhiyong/p/redmine.html
2016-06-03 “Ubuntu部署python3.5的开发和运行环境”:/www.cnblogs.com/beer/p/5557497.html
2016-06-20 “GitLab的简单使用”:/www.jianshu.com/p/142b3dc8ae15
2016-06-24 “AWS亚马逊 VS 阿里云』的深度比较&分析”:/sanwen8.cn/p/1e6XV5X.html
2016-07-17 “docker完整解决方案”:/www.colabug.com/thread-1598722-1-1.html
2016-07-18 “Ubuntu 16.04网络配置”:/blog.csdn.net/hurricane_0x01/article/details/51941941
2016-08-03 “Windows下Git多账号配置,同一电脑多个ssh-key的管理”:/www.cnblogs.com/popfisher/p/5731232.html
2016-09-07 “如何做一个优秀的微服务访问安全设计方案”:/wwwbuild.net/greatops/414179.html
2016-08-02 “etcd集群部署与遇到的坑”:/www.cnblogs.com/breg/p/5728237.html
2016-08-09 “Ubuntu 16.04 几个国内更新源”:/www.cnblogs.com/bovenson/p/5752213.html
2016-09-02 “Win10下安装VS2013出现“win10 windows兼容性模式已打开 请将其关闭”错误的解决办法”:/blog.csdn.net/smallflyingpig/article/details/52419832
2016-09-08 “程序化广告实战分享系列 – PDB之坑(一)”:/zhuanlan.zhihu.com/p/22320738
2016-09-08 “程序化广告实战分享系列 – PDB之坑(二)”:/zhuanlan.zhihu.com/p/22321821
2016-09-08 “程序化广告实战分享系列 – PDB之坑(三)”:/zhuanlan.zhihu.com/p/22368230
2016-09-08 “王福强谈微服务:系统化考虑交付效率,掌握技术“手感””:/www.infoq.com/cn/news/2016/09/docker-Scala-Defense-Depth?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global
2016-09-08 “用 Python 实现 Python 解释器”:/linux.cn/article-7753-1.html?utm_source=weixin
2016-09-08 “分库分表的几种常见形式以及可能遇到的难题”:/mp.weixin.qq.com/s?__biz=MzA5Nzc4OTA1Mw==&mid=2659598135&idx=1&sn=2f1daf51d92b9c5ed06d9422fdd19d49&scene=1&srcid=09098hfgOM3438bvOKHICIBX#rd
2016-09-28 “几个连接HiveServer的客户端界面工具”:/lxw1234.com/archives/2016/09/723.htm
2016-10-08 “传统企业应用容器化的痛点、坑和解决之道”:/mp.weixin.qq.com/s?__biz=MzA5OTAyNzQ2OA==&mid=2649692052&idx=1&sn=413fe320f15560d60a72f132a0572576&chksm=889328f7bfe4a1e10662c8b2593bdc89e314c92e795d3e493f29ab5e3137ff71b5fd054ac50c&mpshare=1&scene=1&srcid=1008boBGX0z7Gfh9Cn1Zs8hg#rd “PDF”:/nbcache00.baidupcs.com/file/7ba99958a51584c002e63a8aedc61484?bkt=p3-14007ba99958a51584c002e63a8aedc61484f1c42eb80000002377d2&xcode=073bb16e8fd021019f8ae7c4dd05d57bf4a9fe85ae1e23a01682cb8519c2059f&fid=2774404075-250528-173938553122408&time=1475890706&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-rYAJx4rK0C3vKV8CzBdccEctdao%3D&to=nb00&fm=Yan,B,T,t&sta_dx=2324434&sta_cs=42&sta_ft=pdf&sta_ct=3&sta_mt=3&fm2=Yangquan,B,T,t&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=14007ba99958a51584c002e63a8aedc61484f1c42eb80000002377d2&sl=73203790&expires=8h&rt=sh&r=631013621&mlogid=6526499895463198479&vuk=1629589884&vbdid=4177002417&fin=%E4%BC%81%E4%B8%9A%E5%BA%94%E7%94%A8%E5%AE%B9%E5%99%A8%E5%8C%96%E7%9A%84%E7%97%9B%E7%82%B9%E3%80%81%E5%9D%91%E3%80%81%E8%A7%A3%E5%86%B3%E4%B9%8B%E9%81%93.pdf&fn=%E4%BC%81%E4%B8%9A%E5%BA%94%E7%94%A8%E5%AE%B9%E5%99%A8%E5%8C%96%E7%9A%84%E7%97%9B%E7%82%B9%E3%80%81%E5%9D%91%E3%80%81%E8%A7%A3%E5%86%B3%E4%B9%8B%E9%81%93.pdf&slt=pm&uta=0&rtype=1&iv=0&isw=0&dp-logid=6526499895463198479&dp-callid=0.1.1&hps=1&csl=130&csign=xBzNcvplxtfaThTkO5nhEQ5xrGM%3D
2016-10-09 “Hadoop+Spark+MongoDB+MySQL+C#大数据开发项目最佳实践”:/mp.weixin.qq.com/s?__biz=MzI4NTA1MDEwNg==&mid=2650756947&idx=1&sn=57415e19669722cf77233381b2569bb8&chksm=f3f9e2c6c48e6bd084ba4a0958bbd454647727ffae4c6a559a911952ccbb43d1298e59243119&mpshare=1&scene=1&srcid=1009i68VJVUwuT8rBkemeMBu#rd
2016-10-24 “BBC系列:“神秘的混沌理论””:/mp.weixin.qq.com/s?__biz=MjM5MTgyNTk1NA==&mid=2649899064&idx=1&sn=4cdbb5fc3283713a8191b9b683371ccb&chksm=bea9497589dec063e1a4e321c9a0097d0a49908264517e4ba41dba8244223ee7a4fe396c7eac&mpshare=1&scene=1&srcid=1024IYemsog0ePK43Vh30kgh#rd
2016-11-15 “40亿移动设备的用户画像和标签架构实践”:/blog.talkingdata.net/?p=4402
2016-11-18 “Create an offline installation of Visual Studio 2017 RC”:/docs.microsoft.com/zh-cn/visualstudio/install/create-an-offline-installation-of-visual-studio
2016-11-18 “Use Command-Line Parameters to Install Visual Studio 2017 RC”:/docs.microsoft.com/zh-cn/visualstudio/install/use-command-line-parameters-to-install-visual-studio
2016-11-19 “大数据隐私保护技术之脱敏技术探究”:/www.freebuf.com/articles/database/120040.html
2016-11-28 “APP无埋点流程”:/www.jianshu.com/p/6f47fc648e69
2016-12-06 “技术大咖告诉你离精准销售预测还有多远?”:/www.baifendian.com/bigdata/423.html
2016-12-08 “Authentication Strategies in Microservices Systems”:/www.infoq.com/news/2016/12/microservices-authentication
2016-12-19 “APP消息推送(Push),竟然还有这么多你不知道的”:/www.jianshu.com/p/194819dfc76e
2016-12-25 “微服务架构设计”:/www.cnblogs.com/wintersun/p/6219259.html
2017-01-04 “Nginx实现多域名证书HTTPS”:/www.cnblogs.com/kabi/p/6247561.html
2017-01-09 “你想要的百分点大规模Kubernetes集群的应用实践来了”:/zhuanlan.zhihu.com/p/24795783
2017-02-23 “为什么CEO挖的坑,CTO一栽一个准?”:/view.inews.qq.com/a/20170223A040ZJ00
2017-03-18 “Jenkins Gitlab持续集成打包平台搭建”:/www.importnew.com/23921.html
2017-04-28 “Docker学习笔记,从原理到实践”:/www.cnblogs.com/linuxops/p/6781047.html?utm_source=itdadao&utm_medium=referral

“Getting Started with Docker for Windows”:/docs.docker.com/docker-for-windows/#what-to-know-before-you-install
“使用gradle生成Spring Boot应用的Docker Image”:/www.jdon.com/dl/best/docker-containers-with-gradle-in-4-steps.html
“使用Docker创建两个容器的应用”:/www.jdon.com/artichect/build-a-2-container-app-with-docker.html
“10个基于DOCKER的顶尖开发工具”:/www.jdon.com/artichect/top-10-open-source-docker-developer-tools.html
“Mongoose使用案例–让JSON数据直接入库MongoDB”:/blog.fens.me/nodejs-mongoose-json/
“微信:PC客户端自定义插件接口”:/mp.weixin.qq.com/wiki/17/0160b650bc11ca90776343276e91082d.html
“微信:获取客服聊天记录接口”:/mp.weixin.qq.com/wiki/19/7c129ec71ddfa60923ea9334557e8b23.html
“Docker Toolbox”:/mirrors.aliyun.com/docker-toolbox/windows/ “2”:/www.docker.com/products/docker-toolbox
“37国内五大问卷调查平台盈利模式分析”:/3y.uu456.com/bp-sdcdcbb81qsf312b306qas3a-1.html

常用镜像

docker pull alpine:3.5
docker pull centos:7.3.1611
docker pull elasticsearch:5.3.0-alpine
docker pull gitlab/gitlab-ce:9.2.2-ce.0
docker pull jenkins:2.46.1
docker pull mariadb:10.1.22
docker pull nginx:1.10.3
docker pull node:7.8.0
docker pull redmine:3.3.3-passenger
docker pull registry:2.6.1
docker pull tomcat:8.0.43-jre7
docker pull ubuntu:16.04
docker pull wordpress:4.7.5-php5.6-apache

tombstone

ATI Mobility Radeon HD 3400 Series

AMD Catalyst 13.1 Proprietary Linux x86 Display Driver
/www2.ati.com/drivers/legacy/amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip

Step 1: Download the driver from the amd webset.
The verison I download is amd-driver-installer-12.6-legacy-x86.x86_64.run

Step2: Build the Debian package
sudo sh ./amd-driver-installer-12.6-legacy-x86.x86_64.run –buildpkg

Step3: Install the driver
sudo dpkg -i *.deb

Step4: Configure
sudo aticonfig –initial

(920) 896-0253

Question
When I try an push to my remote repo (Unfuddle) using TortoiseGit, my favourite tool, I get the following error. I then open GitGUI and am able to push with no problem. I have gathered through some googling that pageant needs to be running for some PuTTY variants, and it is running. Where do I look next?

No supported authentication methods available (server sent: publickey)

Answer
I had the same problem.

I think the problem was that my Putty key was not set in my TortoiseGit Settings. I had to convert my bitbucket repository private key to a putty private key (.ppk file).

This is how I fixed it:

I downloaded puttygen.exe

I opened puttygen
I clicked Conversions -> Import key -> (imported my “~/.ssh/id_rsa” key)
I confirmed my key passphrase
I clicked “Save private key” and saved the key in my “~/.ssh/” folder
I went in my TortoiseGit settings : (right click on my master folder) -> TortoiseGit -> Settings -> Git -> Remote -> origin -> Putty key -> … -> (I added my newly generated putty private key)

And voilà, I was able to push to my origin repository.

609-935-1083

SHOW VARIABLES LIKE ‘%char%’;
SHOW VARIABLES LIKE ‘%coll%’;
SET NAMES ‘utf8’;

其中
SET NAMES ‘utf8’;
等价于以下3条SQL语句
SET character_set_client = utf8;
SET character_set_results = utf8;
SET character_set_connection = utf8;
这3个变量的作用:
信息输入路径:client→connection→server;
信息输出路径:server→connection→results。

参见:

Rails命令大全

1.1 创建一个Rails应用程序
$ rails app_name
可选项:
-d, database=xxx 指定安装一个数据库(mysql oracle postgresql sqlite2 sqlite3 ), 默认情况下是数据库
-r, ruby-path= 指定Ruby的安装路径,如果没有指定,scripts使用env去找Ruby
-f, freeze (冻结)freezes Rails在vendor/rails目录

1.2 API Documentation
$ gem_server
启动一个WEBrick服务器。这时候你可以通过/localhost:8808/ 打开浏览器去查看rails API文档

1.3 Rake
rake db:fixtures:load
# 载入fixtures到当前环境的数据库
# 载入指定的fixtures使用FIXTURES=x,y
rake db:migrate
# 迁移数据库通过在db/migrate目录下的脚本.可以指定版本号通过VERSION=x
rake db:schema:dump
# 创建一个db/schema.rb文件,通过AR能过够支持任何数据库去使用
rake db:schema:load
# 再入一个schema.rb文件进数据库
rake db:sessions:clear
# 清空sessions表
rake db:sessions:create
# 用CGI::Session::ActiveRecordStore创建一个sessions表为用户
rake db:structure:dump
# 导出数据库结构为一个SQL文件
rake db:test:clone
# 重新创建一个测试数据库从当前环境数据库中
rake db:test:clone_structure
# 重新创建测试数据库从开发模式数据库
rake db:test:prepare
# 准备测试数据库并在入schema
rake db:test:purge
# 清空测试数据库
rake doc:app
# 创建HTML文件的API Documentation
rake doc:clobber_app
# 删除Documentation
rake doc:clobber_plugins
# 删除 plugin Documentation
rake doc:clobber_rails
# 删除Documentation
rake doc:plugins
# 产生Documation为所有安装的plugins
rake doc:rails
# 创建HTML文件的API Documentation
rake doc:reapp
# 强制重新创建HTML文件的API Documentation
rake doc:rerails
# 强制重新创建HTML文件的API Documentation
rake log:clear
# 清空目录log/下的所有日志文件
rake rails:freeze:edge
# Lock this application to latest Edge Rails. Lock a specific revision with REVISION=X
rake rails:freeze:gems
# Lock this application to the current gems (by unpacking them into vendor/rails)
rake rails:unfreeze
# Unlock this application from freeze of gems or edge and return to a fluid use of system gems
rake rails:update
# Update both scripts and public/javascripts from Rails
rake rails:update:javascripts
# Update your javascripts from your current rails install
rake rails:update:scripts
# Add new scripts to the application script/ directory
rake stats
# Report code statistics (KLOCs, etc) from the application
rake test
# Test all units and functionals
rake test:functionals
# Run tests for functionalsdb:test:prepare
rake test:integration
# Run tests for integrationdb:test:prepare
rake test:plugins
# Run tests for pluginsenvironment
rake test:recent
# Run tests for recentdb:test:prepare
rake test:uncommitted
# Run tests for uncommitteddb:test:prepare
rake test:units
# Run tests for unitsdb:test:prepare
rake tmp:cache:clear
# 清空tmp/cache目录下的所有文件
rake tmp:clear
# 清空session, cache, 和socket文件从tmp/目录
rake tmp:create
# 为sessions, cache, and sockets创建tmp/目录
rake tmp:sessions:clear
# 清空所有在tmp/sessions目录下的文件
rake tmp:sockets:clear
# 清空所有在tmp/sessions 目录下的ruby_sess.* 文件

1.4 Scripts
script/about
# 输出当前环境信息
script/breakpointer
# 启动断点server
script/console
# 启动交换式的Rails控制台
script/destroy
# 删除通过generators创建的文件
script/generate
# -> generators
script/plugin
# -> Plugins
script/runner
# 执行一个任务在rails上下文中
script/server
# 启动开发模式服务器/localhost:3000
/以下几个不知道怎么去使用
script/performance/profiler
script/performance/benchmarker
script/process/reaper
script/process/spawner

1.5 Generators
ruby script/generate model ModelName
ruby script/generate controller ListController show edit
ruby script/generate scaffold ModelName ControllerName
ruby script/generate migration AddNewTable
ruby script/generate plugin PluginName
ruby script/generate mailer Notification lost_password signup
ruby script/generate web_service ServiceName api_one api_two
ruby script/generate integration_test TestName
ruby script/generate session_migration
可选项:
-p, –pretend Run but do not make any changes.
-f, –force Overwrite files that already exist.
-s, –skip Skip files that already exist.
-q, –quiet Suppress normal output.
-t, –backtrace Debugging: show backtrace on errors.
-h, –help Show this help message.
-c, –svn Modify files with subversion. (Note: svn must be in path)

1.6 Plugins
script/plugin discover
# discover plugin repositories
script/plugin list
# list all available plugins
script/plugin install where
# install the a€wherea€? plugin
script/plugin install -x where
# install where plugin as SVN external
script/plugin install /invisible.ch/projects/plugins/where
script/plugin update
# update installed plugins
script/plugin source
# add a source repository
script/plugin unsource
# removes a source repository
script/plugin sources
# lists source repositories

rails3 中的一些命令记录
新建一个rails工程
$ rails new + 工程名 (-d mysql)使用mysql数据库

进入控制台
$ rails c 或者 rails console

开启服务
$ rails server -p ***

生成Rails API文档
$ rake doc:rails #/doc/api目录下就有了一份完整的Rails API文档

操作数据库
$ sudo rails dbconsole 我用的是ubuntu,需要sudo,要不然权限有问题
通过rails的scaffold脚手架生成一个简易web CRUD程序,包括一组Model、Views跟Controller
$ rails g scaffold person name:string bio:text birthday:date

创建一个model
$ rails g model article

增加一个字段
$ rails g migration 字段

删除这个创建的model
$ rails destroy model article

创建一个controller
$ rails g controller products index #创建一个controller 顺带创建了index.html.erb

创建一个邮件文件
$ rails g mailer UserMailer welcome forgot_password

登陆插件(acts_as_authenticated) 解压插件,放到vendor\plugins下,在Genarater试图下选择authenticated,在Paramters输入:user user或者 admin admin/admin (注意:前面写model后面写controller)

执行一个 batch
rails 2 ruby script/runner 方法
rails 3 rails runner 方法

创建数据库(指定环境需要加上: RAILS_EVN=product)
$ rake db:create #根据config/database.yml中的配置创建各环境下的空数据库
$ rake db:migrate #根据app的migration 文件生成对应的表

安装plugin
$ rails plugin install /…./..git #对应的plugin会被安装到 Vendor目录下
Thanks, Ivan