Linux的时间分为System Clock(系统时间)和Real Time Clock (硬件时间,简称RTC)。
系统时间:指当前Linux Kernel中的时间。
硬件时间:主板上有电池供电的时间。
查看系统时间的命令: #date
查看硬件时间的命令: #hwclock
CentOS设置系统时间与网络时间同步
1. 安装ntpdate工具
# yum -y install ntpdate
2. 设置系统时间与网络时间同步
# ntpdate cn.pool.ntp.org
3. 将系统时间写入硬件时间
# hwclock --systohc
引用地址:【https://www.linuxidc.com/Linux/2016-07/133755.htm】
CentOS设置系统时间与网络时间同步
CentOS时间同步配置
最新推荐文章于 2023-12-03 23:58:22 发布
本文介绍了CentOS系统中时间同步的配置方法,包括系统时间和硬件时间的区别,如何使用date和hwclock命令查看这两种时间,以及如何通过安装ntpdate工具实现系统时间与网络时间的同步,并最终将系统时间写入硬件时间。
3215

被折叠的 条评论
为什么被折叠?



