<?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>NTP &#8211; Eternal Center</title>
	<atom:link href="https://eternalcenter-2021-12.github.io/category/services/other-services/ntp/feed/" rel="self" type="application/rss+xml" />
	<link>https://eternalcenter-2021-12.github.io/</link>
	<description></description>
	<lastBuildDate>Sun, 26 Dec 2021 09:19:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>[步骤] Linux 时间同步的设置 （通过 NTP 实现）</title>
		<link>https://eternalcenter-2021-12.github.io/ntp-client/</link>
		
		<dc:creator><![CDATA[Mingyu Zhu]]></dc:creator>
		<pubDate>Sun, 21 Jul 2019 12:40:05 +0000</pubDate>
				<category><![CDATA[Chinese (中文)]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[Other Services (其他服务)]]></category>
		<category><![CDATA[Services (服务)]]></category>
		<guid isPermaLink="false">https://eternalcenter-2021-12.github.io/?p=4869</guid>

					<description><![CDATA[注意：从 CentOS 7.2&#38;RHEL 7.0 开始实现时间同步的程序默认从 NTP 换成了 Chrony 。 NTP 也可以继续使用，但是需要单独安装 NTP 的安装包。 步骤一：系统环境要求 服务器系统要配置好可用的软件源 步骤二：确保 NTP 已经安装 步骤三：确保系统会使用 Chrony 或 NTP 的时间同步 步骤四：修改配置文件 将部分内容修改如下： （说明：在配置文件的末尾添加要进行时间同步的服务器） 步骤五：重启客户端的 NTP 服务 步骤六：查看客户端时间同步的状态]]></description>
										<content:encoded><![CDATA[
<p>注意：从 CentOS 7.2&amp;RHEL 7.0 开始实现时间同步的程序默认从 NTP 换成了 Chrony 。 NTP 也可以继续使用，但是需要单独安装 NTP 的安装包。</p>



<h4>步骤一：系统环境要求</h4>



<p>服务器系统要配置好可用的软件源</p>



<h4>步骤二：确保 NTP 已经安装</h4>



<pre class="wp-block-code"><code># yum -y install ntp</code></pre>



<h4>步骤三：确保系统会使用 Chrony 或 NTP 的时间同步</h4>



<pre class="wp-block-code"><code># timedatectl set-ntp true
# timedatectl
               Local time: Fri 2020-06-12 09:52:30 EDT
           Universal time: Fri 2020-06-12 13:52:30 UTC
                 RTC time: Fri 2020-06-12 13:51:52
                Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no</code></pre>



<h4>步骤四：修改配置文件</h4>



<pre class="wp-block-code"><code># vim /etc/sysconfig/ntp</code></pre>



<p>将部分内容修改如下：</p>



<pre class="wp-block-code"><code>......
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst</code></pre>



<p>（说明：在配置文件的末尾添加要进行时间同步的服务器）</p>



<h4>步骤五：重启客户端的 NTP 服务</h4>



<pre class="wp-block-code"><code># service ntpd restart
# service ntpd status</code></pre>



<h4>步骤六：查看客户端时间同步的状态</h4>



<pre class="wp-block-code"><code># ntpq -p</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
