liunx 修改系统时间,以及修改时区(UTC)以及NTP的简单设置
首先先了解一些基本概念CST、UTC
1,UTC 世界协调时间(Universal Time Coordinated,UTC)
GPS
系统中有两种时间区分,一为UTC,另一为LT(地方时)两者的区别为时区不同,UTC就是0时区的时间,地方时为本地时间,如北京为早上八点(东八区),UTC时间就为零点,时间比北京时晚八小时,以此计算即可
2,在linux中,用date查看时间的时候显示:
五 5月 28 12:44:29 CST
2010
这个CST是什么意思呢?
CST China Standard Time UTC+8:00 中国沿海时间(北京时间)
以下在linux下设置日期和时间的一些步骤,也包含了一点ntpd时间同步的内容。特别是在发行版本的限制是red
hat系列,包括fedora,centos,redflag,unbreakable linux等。
There are two clocks to configure in Linux, the hardware clock
and the system clock. The hardware clock determines the system
clock on system boot. While the system is running, changes to one
of these doesn't affect the other.
在linux下有两个时钟需要配置,硬件时钟和系统时钟。硬件时钟在系统启动时决定系统时钟&#x