Linux自动校时
2006-09-11 10:39 | Filed Under Linux |
服务器系统时间总是比较快,于是google到以下解决方案
1、直接连接到校时服务器
- ntpdate stdtime.sinica.edu.tw
注:Server 必须是 Linux,而且要打开 ntpd , time 两个 service
2、更新 BIOS 时间
- clock -w
3、加入计划任务
- crontab -e
- #输入以下代码保存
- 0 0 * * * (/usr/sbin/ntpdate stdtime.sinica.edu.tw ; /sbin/clock -w)
标签:Linux相关日志 随机文章
Comments
Leave a Reply

