Linux System modification System time
1. Set the time
[[email protected] ~]# date-s "2015/11/05 15:56:00"
# Date command-S modified time "2015/10/4 21:15" specified
[Email protected] ~]# Hwclock
# Refresh the time to the BIOS
Fri 12:04:36 AM CST-0.651161 seconds
2. synchronizing with the time.nist.gov time server
[[email protected] ~]# date-s "2015/11/06 15:56:00"
# set an inaccurate time to do the test first
Fri Nov 6 15:56:00 CST 2015
[Email protected] ~]# ntpdate time.nist.gov
5 Nov 16:17:26 ntpdate[1458]: Step time Server 128.138.141.172 offset-85136.870180 sec
#ntpdate synchronizing time.nist.gov server time
[[Email protected] ~]# Date
Thu Nov 5 16:17:27 CST 2015
# Synchronized Time Complete
3. Scheduled task synchronization time
[[email protected]/]# echo "*/5 * * * */usr/sbin/ntpdate time.windows.com >/dev/null 2>&1" >>/var/spool/ Cron/root
# synchronize time to time.windows.com time server every 5 minutes
This article is from the "Breeze Cool" blog, please be sure to keep this source http://jiay1.blog.51cto.com/9144615/1710130
Linux System modification System time description