[root@myserver:/] date Wed Jul 12 10:11:36 CEST 2017
Change it to the current date:
[root@myserver:/] date 010510152017 Thu Jan 5 10:15:31 CET 2017
Where
01=month
05=day
1015=time and minute
2017=year
Let's check it, immediately after we have set it:
[root@myserver:/] date Thu Jan 5 10:16:27 CET 2017
The ntpd deamon has already adjusted the time slightly.
Note that ntpd will only adjust the server time if the local time of the server is within 1000 sec (16 minutes) of the current time. From the xntpd man pages:
Note: When operating in a client mode, the xntpd daemon will exit with an error if no configured servers are within 1000 seconds of local system time. Use the date or ntpdate command to set the time of a bad skewed system before starting xntpd.
No comments:
Post a Comment