zhuzhx 发表于 2013-2-7 11:44:00

linux下时间同步

同步服务器的时间对于服务器端开发人员来说是必要的
linux同步时间命令如下:
ntpdate asia.pool.ntp.org


每天定时同步:

#crontab -e
进入crontab编辑模式,使用方法同vi
输入 0 23 * * * ntpdate asia.pool.ntp.org >> /var/log/ntpdate.log
 
 
页: [1]
查看完整版本: linux下时间同步