<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; ntp</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/ntp/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS使用Chrony部署内网NTP时间服务器</title>
		<link>https://www.osyunwei.com/archives/12126.html</link>
		<comments>https://www.osyunwei.com/archives/12126.html#comments</comments>
		<pubDate>Tue, 10 May 2022 10:45:09 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12126</guid>
		<description><![CDATA[NTP服务器Network Time Protocol（NTP）是用来使计算机时间同步化的一种协议，CentOS 8.x默认不支持NTP，替换为Chrony作为时间同步服务，Chrony既可以当服务器端广播时间，又可以作为客户端同步时间。 系统安装 1、CentOS 7.x系统安装配置图解教程 http://www.osyunwei.com/archives/10003.html 2、CentOS 8.x系统安装配置图解教程 https://www.osyunwei.com/archives/11499.html 准备篇 一、防火墙配置 CentOS 7.x 8.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 Chrony服务器端需要用到udp 123和323端口，因此服务器端防火墙需要打开此端口，客户端则不需要。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 软件包下载地址： CentOS 8.x   https://vault.centos.org/8.2.2004/BaseOS/x86_64/os/Packages/iptables-services-1.8.4-10.el8.x86_64.rpm CentOS 7.x   https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/iptables-services-1.4.21-35.el7.x86_64.rpm 上传到目录：/usr/local/src cd  /usr/local/src 安装 iptables-services： CentOS 8.x  rpm -ivh  iptables-services-1.8.4-10.el8.x86_64.rpm CentOS 7.x  rpm -ivh  iptables-services-1.4.21-35.el7.x86_64.rpm vi [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12126.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12126.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
