linux联网校正时间

 1 Open the terminal or login over the ssh session. You must login as as the root user. Type the following yum command to install ntp
 2 # yum install ntp ntpdate ntp-doc
 3 
 4 Turn on service, enter:
 5 # chkconfig ntpd on
 6 
 7 Synchronize the system clock with 0.pool.ntp.org server (use this command only once or as required):
 8 # ntpdate pool.ntp.org
 9 
10 Start the NTP server. The following will continuously adjusts system time from upstream NTP server. No need to run ntpdate:
11 # /etc/init.d/ntpd start

 

posted on 2015-12-07 09:33  ziyi_ang  阅读(484)  评论(0编辑  收藏  举报

导航