1. 实体机器上安装CentOS

$date -s '2015-03-03 13:34:00'

 

2. 虚拟机上安装的CentOS

#查看系统时间和硬件时间
date 
hwclock --show
#设置硬件时间
hwclock --set --date '2015-03-03 14:00:00' 
#设置系统时间和硬件时间同步
hwclock --hctosys   
#保存时钟
clock -w 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-11-04
  • 2021-10-20
  • 2021-09-09
  • 2021-08-18
猜你喜欢
  • 2021-11-19
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
相关资源
相似解决方案