linux

linux下时间同步的两种方法分享_LINUX_操作系统_脚本之家

http://www.jb51.net/LINUXjishu/73979.html

分布式时间同步系统的参考时间获取技术分析 - 豆丁网

http://www.docin.com/p-506306890.html

[root@hadoop1 crontab_chk_url]# ntpdate time.nist.gov
-bash: ntpdate: 未找到命令
[root@hadoop1 crontab_chk_url]# ntpdate time.nist.gov
-bash: ntpdate: 未找到命令
[root@hadoop1 crontab_chk_url]# yum install ntpdate
已加载插件:fastestmirror
base | 3.6 kB 00:00:00
bintray--sbt-rpm | 1.3 kB 00:00:00
epel | 4.7 kB 00:00:02
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): extras/7/x86_64/primary_db | 130 kB 00:00:06
epel/x86_64/primary_db FAILED 12% [========== ] 60 kB/s | 1.4 MB 00:02:53 ETA
http://mirrors.aliyuncs.com/epel/7/x86_64/repodata/67cedf45bc7b73ab6564635439f4562b29000154be72d7e03e2a518820742333-primary.sqlite.bz2: [Errno 12] Timeout on http://mirrors.aliyuncs.com/epel/7/x86_64/repodata/67cedf45bc7b73ab6564635439f4562b29000154be72d7e03e2a518820742333-primary.sqlite.bz2: (28, 'Connection timed out after 30000 milliseconds')
正在尝试其它镜像。
(2/4): epel/x86_64/updateinfo | 858 kB 00:00:43
(3/4): updates/7/x86_64/primary_db | 4.5 MB 00:02:01
(4/4): epel/x86_64/primary_db | 6.1 MB 00:02:20
Determining fastest mirrors
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 ntpdate.x86_64.0.4.2.6p5-25.el7.centos.2 将被 安装
--> 解决依赖关系完成

依赖关系解决

=========================================================================================================================================================================================================================
Package 架构 版本 源 大小
=========================================================================================================================================================================================================================
正在安装:
ntpdate x86_64 4.2.6p5-25.el7.centos.2 base 86 k

事务概要
=========================================================================================================================================================================================================================
安装 1 软件包

总下载量:86 k
安装大小:121 k
Is this ok [y/d/N]: y
Downloading packages:
ntpdate-4.2.6p5-25.el7.centos.2.x86_64.rpm | 86 kB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : ntpdate-4.2.6p5-25.el7.centos.2.x86_64 1/1
验证中 : ntpdate-4.2.6p5-25.el7.centos.2.x86_64 1/1

已安装:
ntpdate.x86_64 0:4.2.6p5-25.el7.centos.2

完毕!
[root@hadoop1 crontab_chk_url]# ntpdate time.nist.gov
12 Dec 10:04:37 ntpdate[14282]: no server suitable for synchronization found
[root@hadoop1 crontab_chk_url]# date
2017年 12月 12日 星期二 10:04:43 CST
[root@hadoop1 crontab_chk_url]# ntpdate time.windows.com
12 Dec 10:09:37 ntpdate[20525]: no server suitable for synchronization found
[root@hadoop1 crontab_chk_url]# ntpdate time-b.nist.gov
12 Dec 10:08:29 ntpdate[20810]: step time server 129.6.15.29 offset -93.446402 sec
[root@hadoop1 crontab_chk_url]# date
2017年 12月 12日 星期二 10:08:36 CST
[root@hadoop1 crontab_chk_url]#

定时任务

http://ntp.org.cn/

*/10 * * * * ntpdate  edu.ntp.org.cn
*/2 * * * * ntpdate  cn.ntp.org.cn

[root@hadoop1 mail]#  ntpdate  cn.ntp.org.cn
13 Dec 11:11:36 ntpdate[1963]: adjust time server 202.112.29.82 offset -0.062207 sec

不同节点 IP 时间同步 分布式时间同步系统的参考时间获取技术分析的更多相关文章

  1. Ambari安装之部署3个节点的HA分布式集群

    前期博客 Ambari安装之部署单节点集群 其实,按照这个步骤是一样的.只是按照好3个节点后,再做下HA即可. 部署3个节点的HA分布式集群 (1)添加机器 和添加服务的操作类似,如下图 之后的添加a ...

  2. 一款低延迟的分布式数据库同步系统--databus

    每次看到马路对面摩托罗拉的大牌子,都想起谷歌125亿美元收购摩托罗拉移动,后来又以29亿美元卖给联想的事情.谷歌所做的决策都比较考虑长远利益,在这串交易中,谷歌获得了摩托罗拉最有价值的几千项专利,稳健 ...

  3. 【我的Android进阶之旅】Jenkins挂载slave节点,增强分布式编译的效率

    由于公司的Jenkins任务越来越多,而且所有的Android Jenkins任务都在同一台服务器上进行编译,而且该服务器配置Jenkins任务最多3个任务同时运行,所以有时候大家一起编译的时候,只能 ...

  4. 修改cdh5集群中主机节点IP或hostName

    前言 在使用cdh集群过程中,难免会因为某些不可抗拒的原因导致节点IP或hostName变动,而cm的监控界面无法完成这些事情,但是cm将集群中所有的主机的信息都存在postgresql数据库的hos ...

  5. 阿里巴巴开源项目:分布式数据库同步系统otter(解决中美异地机房) - agapple - ITeye技术网站

    阿里巴巴开源项目:分布式数据库同步系统otter(解决中美异地机房) - agapple - ITeye技术网站 阿里巴巴开源项目:分布式数据库同步系统otter(解决中美异地机房)

  6. ES 内存使用和GC指标——主节点每30秒会去检查其他节点的状态,如果任何节点的垃圾回收时间超过30秒(Garbage collection duration),则会导致主节点任务该节点脱离集群。

    摘录自:http://blog.csdn.net/yangwenbo214/article/details/74000458 内存使用和GC指标 在运行Elasticsearch时,内存是您要密切监控 ...

  7. SYN1618型 高精度天文时间同步系统

       SYN1618型 高精度天文时间同步系统 产品概述 SYN1618型 高精度天文时间同步系统是由西安同步电子科技有限公司精心设计.自行研发生产的一款高精度的时频频率标准设备,接收GPS.GLON ...

  8. 如何修改 Kubernetes 节点 IP 地址

    转载自:https://www.qikqiak.com/post/how-to-change-k8s-node-ip/ 昨天网络环境出了点问题,本地的虚拟机搭建的 Kubernetes 环境没有固定 ...

  9. Elasticsearch是一个分布式可扩展的实时搜索和分析引擎,elasticsearch安装配置及中文分词

    http://fuxiaopang.gitbooks.io/learnelasticsearch/content/  (中文) 在Elasticsearch中,文档术语一种类型(type),各种各样的 ...

随机推荐

  1. tornado框架基础10-websocket

    websocket 01 长轮询 在网页,我们经常扫码登录,结合之前的学习的知识点,来思考下,前端是如何知道用户在手机上扫码登录了呢? 长轮询:客户端不断的向服务器发送请求 缺点: \1. 开销大 \ ...

  2. LayUI分页基于ASP.NET MVC

    ---恢复内容开始--- 今天写了挺久的分页,百度了很多都没有很好的.Net实例,今天我来更新一期关于layuiTable分页 首先你得理解layui的官方文档的Table分页部分,我在这里附上地址 ...

  3. 发布tomcate时报A configuration error occurred during startup.please verify the preference field with the prompat:null

    发布tomcate时报A configuration error occurred during startup.please verify the preference field with the ...

  4. 关于构造函数什么值传递给他的实例,只有this和prototype

    var a= function (){var bb = 12; this.aa ="xxx"}; a.aa="www"; a.prototype.cc=&quo ...

  5. MVC4 上传图片并生成缩略图

    Views @using (Html.BeginForm("Create","img",FormMethod.Post, new { enctype = &qu ...

  6. 获得HttpServletRequest 和HttpSession对象

    package org.jeecgframework.core.util; import java.util.HashMap; import java.util.Map; import javax.s ...

  7. 2016 Multi-University Training Contest 5 solutions BY ZSTU

    ATM Mechine E(i,j):存款的范围是[0,i],还可以被警告j次的期望值. E(i,j) = \(max_{k=1}^{i}{\frac{i-k+1}{i+1} * E(i-k,j)+\ ...

  8. 【POJ3294】Life Forms(后缀数组,二分)

    题意: n<=100 len[i]<=1000 思路:这是一道论文题 ..]of longint; ch:..]of ansistring; n,n1,l,r,mid,last,i,j,m ...

  9. BZOJ1733: [Usaco2005 feb]Secret Milking Machine 神秘的挤奶机

    n<=200个点m<=40000条边无向图,求   t次走不经过同条边的路径从1到n的经过的边的最大值   的最小值. 最大值最小--二分,t次不重边路径--边权1的最大流. #inclu ...

  10. Visual Studio Code Edit

    微软的跨平台编辑器~~ 下载地址(官网):https://code.visualstudio.com/ 下载地址(网盘):http://pan.baidu.com/s/1ntLy8Tr 使用技巧: c ...