博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
32.2. ntpdate
阅读量:6868 次
发布时间:2019-06-26

本文共 634 字,大约阅读时间需要 2 分钟。

32.2.1. CentOS 7

# yum install ntpdate# systemctl enable ntpdate# systemctl start ntpdate
# ntpdate 172.16.3.51

或使用

# /usr/libexec/ntpdate-wrapper

32.2.2. CentOS 6

使用 ntpdate 临时更新时间

[root@dev1 ~]# ntpdate 192.168.3.5 && hwclock -w 9 Aug 12:38:22 ntpdate[2538]: step time server 192.168.3.5 offset 3543.674078 sec

另外一个命令同样可以达到ntpdate目的,rdate是系统默认安装。

过程 32.2. ntp client

  1. # yum install ntp
  2. # chkconfig ntpd on# service ntpd start
  3. vim /etc/ntp.conf#server 0.centos.pool.ntp.org#server 1.centos.pool.ntp.org#server 2.centos.pool.ntp.orgserver 192.168.3.5

ntpd 启动后,不能再使用ntpdate

原文出处:Netkiller 系列 手札

本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的文章
Skype For Business online混合部署(二)--混合部署配置
查看>>
Dojo AMD介绍
查看>>
Rsync忽略文件夹或目录
查看>>
linux基础命令Ⅱ
查看>>
Linux下阻塞与非阻塞IO
查看>>
centos6-7 yum安装php的方法
查看>>
No result defined for action
查看>>
Linux下批量管理工具PSSH
查看>>
打印hibernate的SQL语句的几种办法
查看>>
nginx 高级配置示例.
查看>>
HTML知识点笔记(持续添加+++++++)
查看>>
忘记了root密码怎么办
查看>>
Tomcat 警告:consider increasing the maximum size of the cache
查看>>
Linux 用户,组,权限小练习
查看>>
DNS服务在网络中的应用
查看>>
大步迈入3G 时代,如何选择性价比高的资费呢?
查看>>
iPhone异常关机怎么解决?中国消费者协会请苹果10日内答复
查看>>
Sbo通用数据选择功能的实现
查看>>
Oracle 快照控制文件(snapshot control file)
查看>>
11家小微贷机构签约费埃哲云平台 提升P2P风险管理
查看>>