云服务器快速配置阿里巴巴NTP(网络时间协议)服务

简介: 云服务器快速配置阿里巴巴NTP(网络时间协议)服务

一.为什么要切换使用阿里云的公共NTP服务器呢?

NTP 是网络时间协议 (Network Time Protocol),它是用来同步网络中各个计算机的时间的协议。

为什么修改云服务器的DNS呢,中国时间服务器,国内阿里云时间服务器

很多用户使用的是国外VPS

使用过程中常常遇到时间与国内不同步的情况

好在阿里提供了NTP服务器,地址如下:

阿里云镜像站官网:https://developer.aliyun.com/mirror/

阿里云NTP服务器官网:https://developer.aliyun.com/mirror/NTP

二.如何切换使用阿里云NTP服务器。

Linux 服务器上快速配置阿里巴巴 OPSX NTP服务

编辑文件 "/etc/ntp.conf",根据情况修改文件内容为:

· 互联网上的服务器:

driftfile  /var/lib/ntp/drift

pidfile   /var/run/ntpd.pid

logfile /var/log/ntp.log

restrict   default kod nomodify notrap nopeer noquery

restrict -6 default kod nomodify notrap nopeer noquery

restrict 127.0.0.1

server 127.127.1.0

fudge  127.127.1.0 stratum 10

server ntp.aliyun.com iburst minpoll 4 maxpoll 10

restrict ntp.aliyun.com nomodify notrap nopeer noquery

 

 

· 阿里云 ECS 服务器:

driftfile  /var/lib/ntp/drift

pidfile   /var/run/ntpd.pid

logfile /var/log/ntp.log

restrict   default kod nomodify notrap nopeer noquery

restrict -6 default kod nomodify notrap nopeer noquery

restrict 127.0.0.1

server 127.127.1.0

fudge  127.127.1.0 stratum 10

server ntp.aliyun.com iburst minpoll 4 maxpoll 10

restrict ntp.aliyun.com nomodify notrap nopeer noquery

server ntp1.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

restrict ntp1.cloud.aliyuncs.com nomodify notrap nopeer noquery

server ntp2.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

restrict ntp2.cloud.aliyuncs.com nomodify notrap nopeer noquery

server ntp3.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

restrict ntp3.cloud.aliyuncs.com nomodify notrap nopeer noquery

server ntp4.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

restrict ntp4.cloud.aliyuncs.com nomodify notrap nopeer noquery

server ntp5.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

restrict ntp5.cloud.aliyuncs.com nomodify notrap nopeer noquery

server ntp6.cloud.aliyuncs.com iburst minpoll 4 maxpoll 10

restrict ntp6.cloud.aliyuncs.com nomodify notrap nopeer noquery

三.其他公共推荐的NTP服务器

使用以前请先ping相应的域名查看网络是否可达,和相应的访问速度

 

ntp.ntsc.ac.cn   中国国家授时中心

cn.ntp.org.cn     中国授时

 

阿里云NTP时间源服务器

ntp1.aliyun.com

ntp2.aliyun.com

ntp3.aliyun.com

ntp4.aliyun.com

ntp5.aliyun.com

ntp6.aliyun.com

ntp7.aliyun.com

 

国内一些大学NTP时间源服务器

s1a.time.edu.cn   北京邮电大学

s1b.time.edu.cn   清华大学

s1c.time.edu.cn   北京大学

s1d.time.edu.cn   东南大学

s1e.time.edu.cn   清华大学

s2a.time.edu.cn   清华大学

s2b.time.edu.cn   清华大学

s2c.time.edu.cn   北京邮电大学

s2d.time.edu.cn   西南地区网络中心

s2e.time.edu.cn   西北地区网络中心

s2f.time.edu.cn   东北地区网络中心

s2g.time.edu.cn   华东南地区网络中心

s2h.time.edu.cn   四川大学网络管理中心

s2j.time.edu.cn   大连理工大学网络中心

s2k.time.edu.cn   CERNET桂林主节点

s2m.time.edu.cn   北京大学

 

另外,如果服务器在国外,苹果提供的公共NTP服务,以下7个域名

http://time1.apple.com

http://time2.apple.com

http://time3.apple.com

http://time4.apple.com

http://time5.apple.com

http://time6.apple.com

http://time7.apple.com

 

Google(谷歌)提供的NTP服务,以下4个域名

http://time1.google.com

http://time2.google.com

http://time3.google.com

http://time4.google.com

 

 

 

相关实践学习
通义万相文本绘图与人像美化
本解决方案展示了如何利用自研的通义万相AIGC技术在Web服务中实现先进的图像生成。
7天玩转云服务器
云服务器ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,可降低 IT 成本,提升运维效率。本课程手把手带你了解ECS、掌握基本操作、动手实操快照管理、镜像管理等。了解产品详情: https://www.aliyun.com/product/ecs
相关文章
|
2月前
|
弹性计算 ice
阿里云4核8G云服务器配置价格:热门ECS实例及CPU处理器型号说明
阿里云2025年4核8G服务器配置价格汇总,涵盖经济型e实例、计算型c9i等热门ECS实例,CPU含Intel Xeon及AMD EPYC系列,月费159元起,年付低至1578元,按小时计费0.45元起,实际购买享折扣优惠。
506 1
|
2月前
|
弹性计算 定位技术 数据中心
阿里云服务器配置选择方法:付费类型、地域及CPU内存配置全解析
阿里云服务器怎么选?2025最新指南:就近选择地域,降低延迟;长期使用选包年包月,短期灵活选按量付费;企业选2核4G5M仅199元/年,个人选2核2G3M低至99元/年,高性价比爆款推荐,轻松上云。
182 11
|
2月前
|
存储 弹性计算 监控
阿里云渠道商:如何挑选阿里云服务器配置?
本文详解通用型、计算型、内存型等实例适用场景,结合性能评估与成本优化策略,助力用户按需选择。以日均1万访问企业网站为例,2核4G+3M带宽月费约200元,性价比高。合理配置更省钱。
|
2月前
|
存储 弹性计算 网络协议
超详细的阿里云服务器购买流程,ECS自定义购买配置教程
本文详细图解阿里云ECS服务器自定义购买全流程,涵盖付费模式、地域选择、网络配置、实例规格、镜像、存储、安全组及登录设置等核心步骤,助您轻松掌握专业级云服务器搭建方法。
|
2月前
|
弹性计算
阿里云ECS云服务器8核16G配置收费价格,多种ECS实例CPU及费用清单
阿里云8核16G云服务器价格因实例类型而异。计算型c9i约743元/月,一年6450元(7折);通用算力型u1仅673元/月,一年4225元(5.1折)。实际价格享时长折扣,详情见ECS官网。
|
12月前
|
SQL 安全 网络安全
网络安全与信息安全:知识分享####
【10月更文挑战第21天】 随着数字化时代的快速发展,网络安全和信息安全已成为个人和企业不可忽视的关键问题。本文将探讨网络安全漏洞、加密技术以及安全意识的重要性,并提供一些实用的建议,帮助读者提高自身的网络安全防护能力。 ####
273 17
|
SQL 安全 网络安全
网络安全与信息安全:关于网络安全漏洞、加密技术、安全意识等方面的知识分享
随着互联网的普及,网络安全问题日益突出。本文将从网络安全漏洞、加密技术和安全意识三个方面进行探讨,旨在提高读者对网络安全的认识和防范能力。通过分析常见的网络安全漏洞,介绍加密技术的基本原理和应用,以及强调安全意识的重要性,帮助读者更好地保护自己的网络信息安全。
231 10
|
存储 SQL 安全
网络安全与信息安全:关于网络安全漏洞、加密技术、安全意识等方面的知识分享
随着互联网的普及,网络安全问题日益突出。本文将介绍网络安全的重要性,分析常见的网络安全漏洞及其危害,探讨加密技术在保障网络安全中的作用,并强调提高安全意识的必要性。通过本文的学习,读者将了解网络安全的基本概念和应对策略,提升个人和组织的网络安全防护能力。

热门文章

最新文章