ntp协议端口号
ntpisacoreprotocolusedtoday’sitinfrastructuretosynchronizedateandtimeinformation.inordertoworkproperly,wenedtoconfiguraratior
NTP是当今IT基础架构使用的核心协议,用于同步日期和时间信息。 为了正常运行,必须在中间系统(如服务器、客户端和交换机、防火墙和路由器)上配置NTP端口。
NTP端口UDP123(NTPportUDP123 ) )。 ntpusestheudpportnumber 123 by default.ntpservicesrunonudpprotocolbecauseoftheudpsimplicityandperformativebehavior.ntpisalsoa kandgetresponsemannerwhichisverywellsuitedwiththeconnectionlessudpprotocol。
默认情况下,NTP使用UDP端口号123。 为了UDP的简单性和执行行为,NTP服务在UDP协议上运行。 NTP也是非常简单的协议,非常适合无连接的UDP协议,如“问题和回答”响应方式。
受信任的NTP端口TCP 123 (相关联的pporttcp 123 ) ) )。 asstatedpreviouslyntpusesudptransmissionprotocolbydefaultwithportnumber 123.asudpisnotfullyreliableprotocolitmaycreatesomepromer . tcpprovidesmorereliabletransmissionoftheprotocolpackages.sotcpportnumber 123 canbeusedformorereliableandless
如上所述,NTP默认使用端口号为123的UDP传输协议。 由于UDP不是完全可靠的协议,因此在使用过程中可能会出现一些问题。 TCP提供了更可靠的协议分组传输。 因此,TCP端口号123可用于更可靠、问题较少的NTP传输。
Linux NTP端口配置In this part, willlearnbasicstepstolistandchangentpportconfiguration.thesestepscanberunallmajorlinuxdistributionslikeubuntu,Debian,majian
在本节中,您将学习列出和修改NTP端口配置的基本步骤。 可以在所有主要Linux发行版(包括Ubuntu、Debian、Mint、Kali、Fedora和CentOS )上执行这些步骤。
NTP服务端口wewillstartbylistingntpportswiththetoolnetstatandgrep.wewillgrepportnumber 123 fromtheoutpuputurtgrep
首先,使用工具netstat和grep列出NTP端口。 从netstat命令的输出中,使用grep端口号123监听UDP端口和TCP端口。
$ netstat-tuln|grep 123 listntpportsntp端口wecanseethattherearentpserviceslisteningportnumber 123 indifferenterfaceslikelocatocar
可以看到有各种各样的接口。 例如,localhost为127.0.0.1,所有接口0.0.0.0都有NTP服务监听端口号123
打印NTP服务状态In Linux distributions,ntpservicesstatuscanbelistedwiththe
systemctl command like below.在Linux发行版中,可以使用systemctl命令列出NTP服务状态,如下所示。
$ systemctl status ntp Print NTP Service Status 打印NTP服务状态 .u4b9a7a7a284cce5ff7676c2c7bc85314 , .u4b9a7a7a284cce5ff7676c2c7bc85314 .postImageUrl , .u4b9a7a7a284cce5ff7676c2c7bc85314 .centered-text-area { min-height: 80px; position: relative; } .u4b9a7a7a284cce5ff7676c2c7bc85314 , .u4b9a7a7a284cce5ff7676c2c7bc85314:hover , .u4b9a7a7a284cce5ff7676c2c7bc85314:visited , .u4b9a7a7a284cce5ff7676c2c7bc85314:active { border:0!important; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .clearfix:after { content: ""; display: table; clear: both; } .u4b9a7a7a284cce5ff7676c2c7bc85314 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u4b9a7a7a284cce5ff7676c2c7bc85314:active , .u4b9a7a7a284cce5ff7676c2c7bc85314:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .centered-text-area { width: 100%; position: relative; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u4b9a7a7a284cce5ff7676c2c7bc85314:hover .ctaButton { background-color: #E67E22!important; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .u4b9a7a7a284cce5ff7676c2c7bc85314-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u4b9a7a7a284cce5ff7676c2c7bc85314:after { content: ""; display: block; clear: both; } LEARN MORE What Is Nettime and How To Use Nettime? .u4b9a7a7a284cce5ff7676c2c7bc85314 , .u4b9a7a7a284cce5ff7676c2c7bc85314 .postImageUrl , .u4b9a7a7a284cce5ff7676c2c7bc85314 .centered-text-area { min-height: 80px; position: relative; } .u4b9a7a7a284cce5ff7676c2c7bc85314 , .u4b9a7a7a284cce5ff7676c2c7bc85314:hover , .u4b9a7a7a284cce5ff7676c2c7bc85314:visited , .u4b9a7a7a284cce5ff7676c2c7bc85314:active { border:0!important; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .clearfix:after { content: ""; display: table; clear: both; } .u4b9a7a7a284cce5ff7676c2c7bc85314 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u4b9a7a7a284cce5ff7676c2c7bc85314:active , .u4b9a7a7a284cce5ff7676c2c7bc85314:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .centered-text-area { width: 100%; position: relative; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u4b9a7a7a284cce5ff7676c2c7bc85314:hover .ctaButton { background-color: #E67E22!important; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u4b9a7a7a284cce5ff7676c2c7bc85314 .u4b9a7a7a284cce5ff7676c2c7bc85314-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u4b9a7a7a284cce5ff7676c2c7bc85314:after { content: ""; display: block; clear: both; } 了解更多什么是Nettime以及如何使用Nettime?翻译自: https://www.poftut.com/ntp-port-number-and-configuration-tutorial-for-linux-local-system/
ntp协议端口号