liunx系统时间的同步
liunx服务器调整过来后有出现问题,只能使用liunx的crontab定时同步时间了:
Java 代码
ntpdate asia.pool.ntp.org
hwclock -w
clock -w
www.2cto.com
crontab -e
0 */1 * * * /usr/sbin/ntpdate asia.pool.ntp.org >> /var/log/ntpdate.log
首先调整 系统 当前时间并写入liunx内核时钟,每个小时同步一次
利用liunx定时去同步时间,并将日志输出到ntpdate.log日志文件中.
查看更多关于liunx系统时间的同步 - Linux操作系统:Ubuntu_Cento的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did21481