1,安装linux的时候在设置时间的时候有一个选项:

system clock uses UTC,那么这个UTC是什么意思呢?

世界协调时间(Universal Time Coordinated,UTC)

GPS 系统中有两种时间区分,一为UTC,另一为LT(地方时)两者的区别为时区不同,UTC就是0时区的时间,地方时为本地时间,如北京为早上八点(东八区),UTC时间就为零点,时间比北京时晚八小时,以此计算即可

2,在linux中,用date查看时间的时候显示:

2008年 12月 17日 星期三 09:04:14 CST

这个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下有两个时钟需要配置,硬件时钟和系统时钟。硬件时钟在系统启动时决定系统时钟,当系统处于运行状态下时,修改其中任何一个并不能对另一个默认生效。

Note: it's best to set the hardware clock and have the system clock be set upon a reboot. Changing the system clock by using the date program on a running system could cause date discontinuities and consequently problems. If you will be using ntpd, you probably don't need to set either of these clocks (unless the current time is more than 1000s off the real time). Just setup ntpd and let ntpd adjust the time (it will do it in small steps to keep system timestamps reliable).

现在大部分的发行版本在图形界面下都提供了时钟设置工具,例如kde,gnome都有友好的 图形化工具,这里就不多说了。

You can use timeconfig to configure the timezone and UTC settings. Timeconfig will update /etc/sysconfig/clock and /etc/localtime.

Set the time zone manually if not already set.

Linux uses the file /etc/localtime to determine the time zone. This file should be either a copy of the appropriate timezone file from the directory /usr/share/zoneinfo or a symbolic link. If your time zone is incorrect, create a symbolic link to the appropriate timezone file.# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Set whether hwclock uses local time or UTC

Edit the file /etc/sysconfig/clock and change "UTC=" to true or false. If you have a dual-boot system with Windows, using UTC may cause problems for Windows.

Set the system clock# date MMDDhhmmCCYY.sswhere MM is month, DD is day, hh is hour, mm is minutes, CCYY is year and ss is seconds. Time should be in 24-hour notation.

To only set the time:# date -s hh:mm:ss

Set the hardware clock

To set the hardware clock to the current system clock:# setclockthis method looks at /etc/sysconfig/clock to determine whether the hardware clock is set to UTC

Another method:# hwclock --systohc

# hwclock --systohc --utcuse the second option if you use UTC.

Set hwclock manually:# hwclock --set --date="9/22/96 16:45:05"Everytime you use the hwclock --set command, it will create or edit the file /etc/adjtime to determine the systematic drift. Once you have some history, you can use the --adjust option to adjust the hardware clock appropriately. Run as a cron job if you want the clock to adjust automatically on a regular schedule. Don't use the --adjust function when using ntpd since ntpd will turn the "11 minute mode" on, which is best left alone. See the hwclock manpage for more info.

Setup ntpd for automatic synchronization with a remote server.

Run Red Hat's setup utility to make ntpd start on boot up and edit /etc/ntp.conf

Set server and fudge options:server time.nist.gov

fudge time.nist.gov stratum 10Enable multicastclient:multicastclient # listen on default 224.0.1.1Edit /etc/sysconfig/ntpd if necessary. The default should be fine.

Start the ntpd daemon:# service ntpd start

linux撤销以硬件时钟作为UTC,linux时钟基本概念、CST与UTC、以及NTP简单设置相关推荐

  1. linux查看电脑硬件信息,怎么在linux下查看电脑硬件设备属性和各种信息

    如何在linux下查看电脑硬件设备属性 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuin ...

  2. 一文搞懂linux时间片,硬件时钟,软件时钟,实时时钟,时间中断,墙上时间

    时间片: ​ 时间片是一个数值,它表明程序在被抢占前所持续运行的时间. 相对时间绝对时间区别: ​ 如果某个时间在5s后呗调度执行,那么系统所需要的不是绝对时间,而是相对时间(比如,相对现在5s后): ...

  3. Linux下CST和UTC时间的区别以及不一致的解决方法

    1.在linux中,用date查看时间的时候显示: 2013年 2月 17日 星期三 19:04:14 CST 世界协调时间(Universal Time Coordinated,UTC): GPS ...

  4. linux内核编译后 make: 警告:检测到时钟错误.,系统时钟 make: 警告:检测到时钟错误。您的创建可能是不完整的。...

    修改Linux的时间 修改Linux时间一般涉及到3个命令: date, clock, hwclock date: 修改系统当前的时间: [root]#date –s '2005/12/5 10:01 ...

  5. linux本地时间与utc不一致_Linux下CST和UTC时间的区别以及不一致的解决方法

    1.在linux中,用date查看时间的时候显示: 2013年 2月 17日 星期三 19:04:14 CST 世界协调时间(Universal Time Coordinated,UTC): GPS ...

  6. Linux/CentOS下的CST和UTC时间的区别以及不一致的解决方法

    今天被我遇到了,相差八小时,,,tzselect过了都不行,还得用ntupdate核一下. 网上找的,备不时之需要. ~~~~~~~~~~~~~~~~ 1.在linux中,用date查看时间的时候显示 ...

  7. linux 系统时间 硬件时间 及 时区设置

    系统时间 硬件时间 在Linux中有硬件时钟与系统时钟两种时钟.硬件时钟是指主机板上的时钟设备,也就是通常可在BIOS画面设定的时钟.系统时钟则是指kernel中的时钟.所有Linux相关指令与函数都 ...

  8. 火牛单片机rtc时钟配置_RTC 实时时钟驱动 - Linux内核之我的天下 - CSDN博客

    RTC实时时钟驱动 -------I2C软件模拟通信 内核版本: linux-2.4.21 文档设计:侯辉华 版本: 1.01 时间: 2007/06/10 内容简介:介绍接在I2C总线上RTC实时时 ...

  9. linux查看时钟同步命令,Linux下查看设置时间及同步时间的命令

    linux系统内有两套时钟,一是硬件时钟,即CMOS中的时间,二是系统时钟,在系统初始化完成后,使用的就是系统时钟,两套时钟之间没有任何关联.linux中与时间相关的命令有date.hwclock.n ...

最新文章

  1. java joptionpanel_JOptionPane用法--java
  2. 分享我常用的5个免费的在线 SQL 数据库环境,简直太方便了!
  3. linux删除系统环境变量,Linux系统添加、修改、删除PATH环境变量
  4. 一个解除TCP连接的TIME_WAIT状态限制的简便方法
  5. php里边的join,thinkphp中join用法
  6. 用户行为分析面面观之二
  7. Image Upload based on jQuery
  8. www.biubiujie.com BiuBiu街-要Beautiful的女孩纸逛的街
  9. 编译OpenJDK8:CoreLibraries.gmk:37/e_acos.obj/BuildJdk.gmk:70/Main.gmk:116/错误
  10. 热烈庆贺博客等级V7
  11. 系统背景描述_【通用博世丨智能广播系统】新都芳华微马公园
  12. 现代通信原理5.2:带通信号的(复包络)低通表示
  13. c语言第九章课后作业答案,C语言课后习题部分答案
  14. 什么是IDS IPS以及IDS,IPS的区别
  15. Python_Pandas_分组汇总数据和创建数据透视表
  16. java流分类_什么是流分类-JAVA中什么是流?流经常按照哪几种方式分类,每种方式又将流各分? 爱问知识人...
  17. 水星路器服务器无响应,联想M720Q、光网卡、Pon stick、Openwrt我的完美软路由折腾记...
  18. 文化网,武汉文化网,湖北文化网——体制文化常识
  19. 何以创新和体验升维?百度输入法用虚拟博主给出了答案
  20. 电脑录麦克风声音软件的选择

热门文章

  1. CNN可视化又添新作,南大开源Group-CAM:高效的显著图生成方法|CVPR2021
  2. 粒子滤波在图像跟踪领域的实践
  3. linux swp 内存不足,Linux 增加 Swap 交换分区解决内存不足
  4. 在maven项目中使用Junit进行单元测试
  5. Fuzzy Hashing 算法工具ssdeep 使用
  6. 360浏览器登录_360安全浏览器12下载-360安全浏览器12最新版下载
  7. 内容推荐 | 生信技术与前沿内容知识库
  8. 乌鸦可能是灵长类动物以外最聪明的动物
  9. 本科生连发数篇SCI,你的第一篇SCI发表了吗?
  10. Cell:浙大张兴/朱永群组揭示细菌鞭毛马达结构、组装与扭矩传输机制