Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   4. Cấu hình NTP server(Đồng bộ giờ với máy chủ) (http://quantrinet.com/forum/forumdisplay.php?f=204)
-   -   Setup and Configure NTP Server (http://quantrinet.com/forum/showthread.php?t=3784)

hoctinhoc 04-10-2009 08:15 AM

Setup and Configure NTP Server
 
It's an example to install and Configure NTP server for system clock.

Trích dẫn:


[root@ns ~]# yum -y install ntp


Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================|951 B 00:00

addons 100% |=========================|951 B 00:00

extras 100% |=========================| 1.1 kB 00:00

Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for ntp to pack into transaction set.
ntp-4.2.2p1-5.el5.i386.rp 100% |========================| 36 kB 00:00
---> Package ntp.i386 0:4.2.2p1-5.el5 set to be updated
--> Running transaction check

Dependencies Resolved

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

================================================== =========
Installing:
ntp i386
4.2.2p1-5.el5
base
1.3 M


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

Update 0 Package(s)

Remove 0 Package(s)


Total download size: 1.3 M
Downloading Packages:
(1/1): ntp-4.2.2p1-5.el5. 100% |====================| 1.3 MB 00:00

Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ntp#################################### [1/1]


Installed: ntp.i386 0:4.2.2p1-5.el5
Complete!

[root@ns ~]# mv /etc/ntp.conf /etc/ntp.conf.bk


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

server ntp1.jst.mfeed.ad.jp // Set servers for synchronizing


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
.....


Bây giờ là 05:24 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.