zl程序教程

您现在的位置是:首页 >  系统

当前栏目

FreeBSD系统时间调整

系统 时间 调整 FreeBSD
2023-09-27 14:27:57 时间

首先修改/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


嵌入式Linux 硬件时间-系统时间-时区设置 Linux系统时间分为两种:系统时间和硬件时间。系统时间为Linux内核时间,硬件时间一般为BOIS中的RTC时间。Linux内核在启动时,会尝试读取BIOS中的RTC时间,并以此为基准设置系统时间。内核启动之后,系统时间和硬件即为两个独立的时间,各自运行。