![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NTP
devops_sre
道
展开
-
centos7.x永久修改时间
前言 为了使服务器的时间与东八区的时间,保持高度的一致性,有助于程序、脚本等的正常运行 操作步骤 注 安装在虚拟机上的centos7服务器的时间分为系统时间和硬件时间,二者都修改,并重启系统,才会生效 查看当前时间 date 修改当前系统时间 ntpdate同步的时间短时有效,重启系统会失效 yum -y install ntpdate ntpdate 218.186.3.36 查看硬件时间 hwclock --show 修改硬件时间 hwclock --set --date "2020-11原创 2020-11-30 17:02:44 · 435 阅读 · 0 评论 -
linux系统时间同步的经典查看
#### 前言 为确保您的系统上的日期和时间设置正确 #### 查看 > timedatectl status ``` Local time: Tue 2020-04-21 13:50:48 CST Universal time: Tue 2020-04-21 05:50:48 UTC RTC time: Tue 2020-04-21 ...原创 2020-04-21 13:57:55 · 507 阅读 · 0 评论