- 安装 ntpdate
yum install -y ntpdate
- 同步ntp服务器或者阿里云服务器
ntpdate -u ntp.api.bz 或者 ntpdate ntp.aliyun.com
- 查看时间
date 或者 date "+%Y-%m-%d %H:%M:%S"
05-23
4529
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
- 安装 ntpdate
yum install -y ntpdate
- 同步ntp服务器或者阿里云服务器
ntpdate -u ntp.api.bz 或者 ntpdate ntp.aliyun.com
- 查看时间
date 或者 date "+%Y-%m-%d %H:%M:%S"