更改时间遇到报错处理:
[root@localhost ccj]# timedatectl set-time 2018-08-06
Failed to set time: Automatic time synchronization is enabled
[root@localhost ccj]# timedatectl set-time 15:07:47
Failed to set time: Automatic time synchronization is enabled
[root@localhost ccj]# timedatectl set-time 15:09:45
Failed to set time: Automatic time synchronization is enabled
[root@localhost ccj]# systemctl status ntp
Unit ntp.service could not be found.
[root@localhost ccj]# timedatectl set-ntp no
[root@localhost ccj]# timedatectl set-time "2018-8-6 15:13:22"
[root@localhost ccj]# timedatectl
Local time: 一 2018-08-06 15:13:35 PDT
Universal time: 一 2018-08-06 22:13:35 UTC
RTC time: 一 2018-08-06 22:13:36
Time zone: America/Los_Angeles (PDT, -0700)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
日 2018-03-11 01:59:59 PST
日 2018-03-11 03:00:00 PDT
Next DST change: DST ends (the clock jumps one hour backwards) at
日 2018-11-04 01:59:59 PDT
日 2018-11-04 01:00:00 PST