sobota, 19 marca 2016

hour update fedora ntp

1. install ntp
2. check config file /etc/ntp.conf
3. enable time service - systemctl enable ntpdate.service
4. start and check ntpdate service

[root@virt tomcat]# systemctl start ntpdate.service
[root@virt tomcat]#
[root@virt tomcat]#
[root@virt tomcat]#
[root@virt tomcat]# systemctl status ntpdate.service
● ntpdate.service - Set time via NTP
   Loaded: loaded (/usr/lib/systemd/system/ntpdate.service; enabled; vendor preset: disabled)
   Active: active (exited) since sob 2016-03-19 22:02:08 CET; 3s ago
  Process: 14231 ExecStart=/usr/libexec/ntpdate-wrapper (code=exited, status=0/SUCCESS)
 Main PID: 14231 (code=exited, status=0/SUCCESS)

mar 19 21:12:41 virt systemd[1]: Starting Set time via NTP...
mar 19 22:02:08 virt ntpdate[14239]: step time server 31.216.56.5 offset 2963.680015 sec
mar 19 22:02:08 virt systemd[1]: Started Set time via NTP.

[root@virt tomcat]# date
sob, 19 mar 2016, 22:02:15 CET


Brak komentarzy:

Prześlij komentarz