天天看點

Linux實戰(13):Centos8 同步時間

前言

以下操作是通過

ntpdate

指令實作同步
timedatectl set-timezone Asia/Shanghai 
# 設定時區
rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
# 添加 wlnmp yum源
yum install wntp
#安裝工具
ntpdate ntp1.aliyun.com
#使用阿裡雲時間伺服器同步時間
           

測試

[root@test ~]# date
Thu May 14 02:00:04 EDT 2020