sudo yum install ntp
- Change to domestic time zone and synchronize
timedatectl set-timezone Asia/Shanghai
timedatectl set-ntp yes
- View time to ensure synchronization
timedatectl
date
The End label: Centos7 , Synchronization time
Link to this article: https://www.51it.wang/ll/488
For commercial reproduction, please contact the author for authorization. For non-commercial reproduction, please indicate the source and link of this article