freebsd同步时间

# ntpdate cn.pool.ntp.org

 

这样时间就准了。

cn.poolntp.org 是中国的时间服务器。

 

如想每天晚上23点同步一次时间

# ee /etc/crontab

在最后加入

 

#Synchronise My Server clock

#minute hour mday month wday who command

0 23 * * * root /usr/sbin/ntpdate cn.pool.ntp.org > /dev/null

 

保存退出,就可以了。

评论

此博客中的热门博文

FreeBSD安装Pure-FTPd及user manager for PureFTPd

debian lighttpd php ssl

解决nginx出现File not found的问题