taosheng-yijiu

1、系统时间

  date:查看当前系统时间

    修改时间:

   date -s "2020-02-02 08:09:20" 

 

2、硬件时间

  hwclock --show:查看当前硬件时间

 

3、ntpdate

  设置网络时间为当前系统时间

  1)安装工具:yum -y install ntp ntpdate

  2)设置系统时间与网络时间同步:ntpdate cn.pool.ntp.org

  3)将系统时间写入硬件时间:hwclock --systohc

 

注:亲测可用,修改系统时间只有超级管理员账号才可以

分类:

技术点:

相关文章:

  • 2021-09-27
  • 2021-09-27
  • 2021-09-27
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
猜你喜欢
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-12-15
相关资源
相似解决方案