1. 程式人生 > >Centos 7 修改時間問題

Centos 7 修改時間問題

更改時間遇到報錯處理:

[[email protected] ccj]# timedatectl set-time 2018-08-06
Failed to set time: Automatic time synchronization is enabled
[[email protected] ccj]# timedatectl set-time 15:07:47
Failed to set time: Automatic time synchronization is enabled
[[email protected] ccj]# timedatectl set
-time 15:09:45 Failed to set time: Automatic time synchronization is enabled [[email protected] ccj]# systemctl status ntp Unit ntp.service could not be found.
[[email protected] ccj]# timedatectl set-ntp no
[[email protected] ccj]# timedatectl set-time "2018-8-6 15:13:22"
[[email protected]
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) at2018-11-04 01:59:59 PDT 日 2018-11-04 01:00:00 PST