网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容 知识问答

CentOS 7.5 配置 NTP 时钟同步

时间:2024-10-12 09:33:37

1、NTP 服务通信的端口为 UDP 123。

2、rpm -qa | grep ntp-检查系统是否安装 ntp 软件包,可以看到系统默认安装了 ntp 软件包。

CentOS 7.5 配置 NTP 时钟同步

4、# server 0.centos.pool.ntp.org iburst# server 1.centos.pool.ntp.org i芟鲠阻缒burst# server 2.centos.pool.ntp.org iburst# server 3.centos.pool.ntp.org iburstserver ntp.aliyun.com iburst查找 server 字段,系统默认配置了 4 个 ntp 服务器,我们注释掉厂商的 ntp 服务器,添加阿里云时钟服务器,阿里云时钟服务器地址为 203.107.6.88,保存配置文件并退出。

CentOS 7.5 配置 NTP 时钟同步

5、systemctl restart ntpdsystemctl status ntpd重启 ntpd 并查看 ntpd 状态。

CentOS 7.5 配置 NTP 时钟同步

7、ntpq -p使用 ntpq -p 命令也能查看 ntp 同步状态。

CentOS 7.5 配置 NTP 时钟同步
© 2025 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com