牵着老婆满街逛

严以律己,宽以待人. 三思而后行.
GMail/GTalk: yanglinbo#google.com;
MSN/Email: tx7do#yahoo.com.cn;
QQ: 3 0 3 3 9 6 9 2 0 .

FreeBSD系统时间调整

转载自:http://hi.baidu.com/rainchen/blog/item/8b9cb211e7c73b7bcb80c42c.html


先设置时区:
# tzsetup

再与国家授时中心服务器对时:
# ntpdate 210.72.145.44

以后自动同步:

首先修改/etc/rc.conf添加ntpd_enable="YES"到最后一行。

然后配置对时服务器:

# vi /etc/ntp.conf

server 210.72.145.44 prefer
server 159.226.154.47
server 127.127.1.0
fudge 127.127.0.1 stratum 5
restrict default ignore
restrict 127.0.0.0 mask 255.0.0.0
restrict 192.168.0.0 mask 255.255.255.0 noquery nopeer notrust
restrict 210.72.145.44 noquery
restrict 159.226.154.47 noquery
driftfile /var/db/ntpd.drift

/var/run/xntpd.pid

参考:

FreeBSD系统时间调整

让FreeBSD使用ntpd同步时间

FreeBSD连载23:配置系统时间

freebsd系统时间同步及ntp服务的提供

中国国家授时中心的时间服务器IP地址

中国大概能用的NTP服务器地址


posted on 2010-06-25 08:08 杨粼波 阅读(672) 评论(0)  编辑 收藏 引用 所属分类: FreeBSD


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理