Ubuntu时间同步ntpdate、ntpd、ntpq

原文

http://blog.sina.com.cn/s/blog_6262a50e0100py1i.html

http://383624883.blog.163.com/blog/static/23997856201221224140863/

 

ntp -- NTP 服务器
 
sudo apt-get install ntp
 
编辑 /etc/ntp.conf:
 
server ntp.ubuntu.com
server pool.ntp.org
 
/etc/init.d/ntp restart
 
ntpq -- ntpd 监视程序
 
watch ntpq -p
 
ntpdate
 
sudo apt-get install ntpdate
 
编辑 /etc/cron.daily/ntpdate:
 
ntpdate ntp.ubuntu.com pool.ntp.org
 
sudo chmod +x /etc/cron.daily/ntpdate
posted @ 2012-11-19 10:22  timkyle_zhang  阅读(2315)  评论(0编辑  收藏  举报