更改138,131,37服务器时间AND设置crontab
时间:2006-09-10 来源:cifan
同步服务器时间
#ntpdate clock.redhat.com
将系统时间写入RTC(real tome clock)
#clock -w
编辑crontab 让系统自动同步时间
#crontab -e
写入
0 5 * * * ntpdate clock.redhat.com && clock -w
每天5点同步时间并将时间写入RTC
相关阅读 更多 +