Centos7 修改硬件时间和系统时间(有彩蛋——)

要是用root哦

  • 查看系统时间
[root@localhost ~]# date
2018年 08月 04日 星期六 14:54:50 CST
  •  

  • 查看硬件时间
[root@localhost ~]# hwclock --show
2018年08月04日 星期六 14时55分29秒  -0.928452 秒

假如系统时间和硬件时间都不准确

  • 更新系统年月日
[root@localhost ~]# timedatectl set-time 2018-08-04
  • 1

  • 更新系统时分秒
[root@localhost ~]# timedatectl set-time 14:57:33
  • 更新时区(亚洲-中国-上海)
[root@localhost ~]# timedatectl set-timezone Asia/Shanghai
  • 1

  • 将硬件时钟调整为与系统时钟一致
[root@localhost ~]# timedatectl set-local-rtc 1
或者
[root@localhost ~]# hwclock --systohc --localtime 
  •  

  • 将日期写入CMOS
[root@localhost ~]# clock –w

 可能在设置的时候碰到不能修改

[root@localhost ~]# timedatectl set-time 2018-08-05
Failed to set time: Automatic time synchronization is enabled

这时候可将时间同步服务关掉

[root@localhost ~]# timedatectl set-ntp no

这下就 

 ok

打开Beyond Compare 4,提示已经超出30天试用期限制,解决方法:
1.修改C:\Program Files\Beyond Compare 4\BCUnrar.dll ,这个文件重命名或者直接删除,则会新增30天试用期,再次打开提示还有28天试用期。
2.一劳永逸,修改注册表
1)在搜索栏中输入 regedit   ,打开注册表
2) 删除项目:计算机\HKEY_CURRENT_USER\Software\Scooter Software\Beyond Compare 4\CacheId

猜你喜欢

转载自blog.csdn.net/zhbzhbzhbbaby/article/details/81387675
今日推荐