帮助与文档

当前位置: 主页 > 系统相关 > 正文

Centos如何实现与internet时间同步

时间:2024/4/25 8:47:18   来源:米安网络   作者:云主机配置专家   点击:7次

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

版权保护: 本文「Centos如何实现与internet时间同步」由 云主机配置专家 原创,转载请保留链接: https://www.miandns.com/docs/system/589.html

联系客服

0312-5535754

微信公众号