修改服务器时间

date -s "2020-01-10 21:55:00"

clock -w

1. 安装ntpdate工具

yum -y install ntp ntpdate

2. 设置系统时间与网络时间同步

ntpdate cn.pool.ntp.org

3. 将系统时间写入硬件时间=

hwclock --systohc

4. 强制系统时间写入CMOS中防止重启失效

  hwclock -w

  或clock -w

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2021-11-04
  • 2019-12-26
  • 2021-12-07
  • 2022-12-23
  • 2022-01-01
  • 2021-11-04
猜你喜欢
  • 2021-11-04
  • 2021-08-17
  • 2021-11-14
  • 2021-08-28
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案