The clock can be set manually and using NTP service.
1. Manually:
[root@server /root]# date 012621362007
Fri Jan 26 21:36:26 PST 2007
[root@server /root]# hwclock --utc --systohc
[root@server /root]#
2. Using NTP service:
Add the time server to /etc/ntp.conf and to /etc/ntp/step-tickers:
/etc/ntp.conf:
server 192.168.0.1
server 192.168.0.2
/etc/ntp/step-tickers
192.168.0.1
192.168.0.2
Then make sure that ntp will start at boot time:
chkconfig --level 2345 ntpd on
chkconfig --list ntpd
And start the service:
service ntpd start
1. Manually:
[root@server /root]# date 012621362007
Fri Jan 26 21:36:26 PST 2007
[root@server /root]# hwclock --utc --systohc
[root@server /root]#
2. Using NTP service:
Add the time server to /etc/ntp.conf and to /etc/ntp/step-tickers:
/etc/ntp.conf:
server 192.168.0.1
server 192.168.0.2
/etc/ntp/step-tickers
192.168.0.1
192.168.0.2
Then make sure that ntp will start at boot time:
chkconfig --level 2345 ntpd on
chkconfig --list ntpd
And start the service:
service ntpd start
Comments