ubuntu changing system time is invalid

Modifying the server time with the root user is invalid; using hwclock -w also does not work

 

Solution:

Need to cancel automatic time synchronization from the Internet

timedatectl set-ntp 0

The above command can turn off automatic synchronization, and then you can set it again

If you want to open it again, you can run

timedatectl set-ntp 1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325219687&siteId=291194637