16.2. ntp client

简介:

使用 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
 		
		

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

过程 16.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.org
    server 192.168.3.5
    
    				

ntpd 启动后,不能再使用ntpdate

Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>comments powered by Disqus





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

目录
相关文章
|
网络协议
UDP Server/Client
UDP Server/Client
194 0
|
NoSQL API Redis
|
网络协议 Linux JavaScript
|
开发工具
|
开发工具
|
NoSQL 关系型数据库 Shell