Thứ Sáu, 6 tháng 7, 2012

Sync Date/Time on Solaris with NTP Server

"Manually" set the clock correctly just once

Sample: ntpdate -b clock.example.org timekeeper.sample.com
 
Set the clock correctly on every boot up
Create the ntp.conf file.
To activate the ntpd daemon, the ntp.conf file must first be created.

# cd /etc/inet
# cp ntp.client ntp.conf

 Edit the ntp.conf file.

 
Sample: 
driftfile /etc/ntp.drift 
# public NTP servers we sync to:  (use these 2 lines ONLY on ntp1 and 
ntp2!)
server clock.example.org
server timekeeper.sample.com

Không có nhận xét nào:

Đăng nhận xét