Install/Setting the Date/zh-cn

From Funtoo
Jump to navigation Jump to search
This page is a translated version of the page Install/Setting the Date and the translation is 83% complete.
Other languages:
English • ‎español • ‎polski • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

安装指南:设置日期

Install Guide, Chapter 7 < Prev Next >
   Important

如果你的系统上的时间与实际的时间相差太远(特别是几月甚至是几年,)那么有可能会导致 Protage 无法正确地通过 https 下载源码包。原因是有一些源码会包会通过 https 下载,而 SSL 证书是具有完整的激活和过期时间的。但是,如果你的系统时间与正确的时间相差不多,目前是可以跳过这段的。

显示要验证日期和时间被正确的设定为 UTC 格式。使用 date 命令来校验日期和时间。

root # date
Fri Jul 15 19:47:18 UTC 2011

If the date and/or time need to be corrected, do so using date MMDDhhmmYYYY, keeping in mind hhmm are in 24-hour format. The example below changes the date and time to "July 16th, 2011 @ 8:00PM" UTC:

root # date 071620002011
Fri Jul 16 20:00:00 UTC 2011

Once you have set the system clock, it's a very good idea to copy the time to the hardware clock, so it persists across reboots:

root # hwclock --systohc
Install Guide, Chapter 7 < Prev Next >