NTP Server2008/11/26 |
It's an example to install and Configure NTP server for system clock. |
[root@ns ~]# yum -y install ntp Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * fedora: ftp.jaist.ac.jp * updates: ftp.dti.ad.jp Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package ntp.i386 0:4.2.4p5-2.fc10 set to be updated --> Processing Dependency: ntpdate = 4.2.4p5-2.fc10 for package: ntp --> Running transaction check ---> Package ntpdate.i386 0:4.2.4p5-2.fc10 set to be updated --> Finished Dependency Resolution Dependencies Resolved =================================================================== Package Arch
Version
Repository
Size =================================================================== Installing: ntp i386
4.2.4p5-2.fc10
fedora
1.4 M Installing for dependencies: ntpdate i386
4.2.4p5-2.fc10
fedora
55 k Transaction Summary =================================================================== Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 1.4 M Downloading Packages: (1/2): ntpdate-4.2.4p5-2. 100% |====================| 55 kB 00:00 (2/2): ntp-4.2.4p5-2.fc10 100% |====================| 1.4 MB 00:00 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: ntpdate #################################### [1/2] Installing: ntp #################################### [2/2] Installed: ntp.i386 0:4.2.4p5-2.fc10 Dependency Installed: ntpdate.i386 0:4.2.4p5-2.fc10 Complete! [root@ns ~]# mv /etc/ntp.conf /etc/ntp.conf.bk [root@ns ~]# vi /etc/ntp.conf # Set servers for synchronizing server ntp1.jst.mfeed.ad.jp server ntp2.jst.mfeed.ad.jp server ntp3.jst.mfeed.ad.jp [root@ns ~]# /etc/rc.d/init.d/ntpd start Starting ntpd: [ OK ] [root@ns ~]# chkconfig ntpd on [root@ns ~]# ntpq -p remote
refid
st
t
when
poll
reach
delay
offset
jitter ========================================================== ntp1.jst.mfeed. 210.173.160.86 2
u 2 64 1
21.227 -475.55 0.001 ntp2.jst.mfeed. 210.173.160.86 2 u
1 64 1 21.400
-475.53 0.001 ntp3.jst.mfeed. 210.173.160.86 2 u
- 64 1 22.087
-476.08 0.001
|
|