Centos如何实现与internet时间同步
- 来源:纵横数据
- 作者:中横科技
- 时间:2022/11/3 11:06:16
- 类别:新闻资讯
Centos如何实现与internet时间同步
1.安装wget下载工具
yum install wget -y
2.使用wget下载ntpdate安装包
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/ntpdate-4.2.6p5-29.el7.centos.2.x86_64.rpm
3.安装ntpdate
rpm -ivh ntpdate-4.2.6p5-29.el7.centos.2.x86_64.rpm
4.通过ntpdate命令同步网络时间
ntpdate < NTP服务器地址 >
ntpdate ntp.ntsc.ac.cn
5.国内外常用公共NTP网络时间服务器地址
国内服务器适用
ntp.ntsc.ac.cn
ntp.aliyun.com
time.asia.apple.com
cn.ntp.org.cn
time.windows.com
cn.pool.ntp.org
海外服务器适用
time.google.com
time.facebook.com
time.cloudflare.com