Fedora 13
Sponsored Link

NTPサーバー構築2010/05/25

  時刻合わせのためのntpサーバーを構築します。
[root@dlp ~]#
yum -y install ntp

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* fedora: www.ftp.ne.jp
* updates: www.ftp.ne.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ntp.x86_64 0:4.2.6p1-2.fc13 set to be updated
--> Processing Dependency: ntpdate = 4.2.6p1-2.fc13 for package: ntp-4.2.6p1-2.fc13.x86_64
--> Running transaction check
---> Package ntpdate.x86_64 0:4.2.6p1-2.fc13 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved

===================================================================
Package
Arch
Version
Repository
Size

===================================================================
Installing:
  ntp
x86_64
4.2.6p1-2.fc13
updates
625 k

Installing for dependencies:
  ntpdate
x86_64
4.2.6p1-2.fc13
updates
69 k


Transaction Summary
===================================================================
Install
2 Package(s)

Upgrade
0 Package(s)


Total download size: 694 k
Downloading Packages:
(1/2): ntp-4.2.6p1-2.fc13.x86_64.rpm
| 625 kB   00:00

(2/2): ntpdate-4.2.6p1-2.fc13.x86_64.rpm
|   69 kB   00:00

---------------------------------------------------------
Total
725 kB/s | 694 kB 00:00

Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
   Installing : ntpdate-4.2.6p1-2.fc13.x86_64
1/2

   Installing : ntp-4.2.6p1-2.fc13.x86_64
2/2


Installed:
   ntp.x86_64 0:4.2.6p1-2.fc13

Dependency Installed:
   ntpdate.x86_64 0:4.2.6p1-2.fc13

Complete!
[root@dlp ~]#
mv /etc/ntp.conf /etc/ntp.conf.bk

[root@dlp ~]#
vi /etc/ntp.conf


# 同期をとるサーバーを指定

server ntp1.jst.mfeed.ad.jp

server ntp2.jst.mfeed.ad.jp

server ntp3.jst.mfeed.ad.jp


[root@dlp ~]#
/etc/rc.d/init.d/ntpd start

Starting ntpd:
[ OK ]

[root@dlp ~]#
chkconfig ntpd on

[root@dlp ~]#
ntpq -p

remote
refid
st
t
when
poll
reach
delay
offset
jitter

==========================================================
ntp1.jst.mfeed.
210.173.176.4
2
u
2
64
1
21.227
187904.
0.000

ntp2.jst.mfeed.
210.173.176.4
2
u
1
64
1
21.400
187903.
0.000

ntp3.jst.mfeed.
210.173.176.4
2
u
-
64
1
22.087
187900.
0.000
関連コンテンツ