Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

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

comments powered by Disqus