|
|
我从stage3安装的gentoo,修改了时区,校正的时间,主版的时间设置为本地时间,但是每次重启后时间会错个时机分钟到一个多小时不等,而且每次错的都不一样,不知为何,重启时,进入bios发现时间还是对的,但是linux启动了以后时间就不对了。
没有安装过NTP服务,一些设置如下
- # ls -ld /etc/localtime
- lrwxrwxrwx 1 root root 33 7月 2 13:47 /etc/localtime -> /usr/share/zoneinfo/Asia/Shanghai
复制代码
- # cat /etc/conf.d/clock
- # /etc/conf.d/clock
- # $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/clock,v 1.2.4.1 2005/02/19 02:13:53 vapier Exp $
- # Set CLOCK to "UTC" if your system clock is set to UTC (also known as
- # Greenwich Mean Time). If your clock is set to the local time, then
- # set CLOCK to "local".
- CLOCK="local"
- # If you wish to pass any other arguments to hwclock during bootup,
- # you may do so here.
- CLOCK_OPTS=""
- # If you want to sync the system clock to the hardware clock during
- # shutdown, then say "yes" here.
- CLOCK_SYSTOHC="no"
- ### ALPHA SPECIFIC OPTIONS ###
- # If your alpha uses the SRM console, set this to "yes".
- SRM="no"
- # If your alpha uses the ARC console, set this to "yes".
- ARC="no"
复制代码
我尝试过先 date MMDDhhmm校正时间,然后 hwclock --systohc,然后reboot后时间就不对了,不知是何故? :ask |
|