<?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>Historical Log &#187; ntpdate</title>
	<atom:link href="http://takuya.miyai.jp/tag/ntpdate/feed" rel="self" type="application/rss+xml" />
	<link>http://takuya.miyai.jp</link>
	<description>宮井拓也の日記</description>
	<lastBuildDate>Sun, 25 Sep 2011 08:10:53 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>ntpdateの設定</title>
		<link>http://takuya.miyai.jp/logs/pc%e3%83%bbserver%e8%a8%ad%e5%ae%9a/ntpdate%e3%81%ae%e8%a8%ad%e5%ae%9a.html</link>
		<comments>http://takuya.miyai.jp/logs/pc%e3%83%bbserver%e8%a8%ad%e5%ae%9a/ntpdate%e3%81%ae%e8%a8%ad%e5%ae%9a.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 14:56:37 +0000</pubDate>
		<dc:creator>tmiyai</dc:creator>
				<category><![CDATA[PC・Server設定]]></category>
		<category><![CDATA[ntpdate]]></category>

		<guid isPermaLink="false">http://takuya.miyai.jp/?p=511</guid>
		<description><![CDATA[時刻同期という事でよく設定するにもかかわらず、内容をいつも忘れてしまうので、これまたメモ。 ＃VMWare上という事もあるので、今回はntpdateでの対応です。 ＃ntpd　→　サーバアプリケーション ＃ntpdate [...]]]></description>
			<content:encoded><![CDATA[<p>時刻同期という事でよく設定するにもかかわらず、内容をいつも忘れてしまうので、これまたメモ。</p>
<p>＃VMWare上という事もあるので、今回はntpdateでの対応です。<br />
＃ntpd　→　サーバアプリケーション<br />
＃ntpdate　→　クライアントアプリケーション<br />
＃と思っていますが、正しいかな。。。</p>
<p>■１．ntpdateのインストール<br />
最小構成で入れているので、まずモジュールインストールから。</p>
<pre># yum -y install ntpdate</pre>
<p>■２．ntpdateのテスト<br />
<a href="http://www.jst.mfeed.ad.jp/index.html">インターネットマルチフィード</a>が準備してくれているntpサーバと同期を取ってみます。</p>
<pre># ntpdate ntp1.jst.mfeed.ad.jp
17 Mar 07:27:03 ntpdate[2139]: adjust time server 210.173.160.27 offset 0.000766 sec</pre>
<p>複数指定できる場合には、以下のようなntpサーバが公開されています。</p>
<pre>
* ntp1.jst.mfeed.ad.jp (210.173.160.27)
* ntp2.jst.mfeed.ad.jp (210.173.160.57)
* ntp3.jst.mfeed.ad.jp (210.173.160.87)
</pre>
<p>■３．cronに登録<br />
問題ないようなので、cronに登録します。<br />
毎時実行されるように、cron.hourlyに作成。</p>
<pre># vi /etc/cron.hourly/ntpdate.cron</pre>
<p>ファイル内容は以下の通り（念のためIPアドレスで指定）<br />
[Bash]<br />
#!/bin/sh<br />
/usr/sbin/ntpdate 210.173.160.27<br />
[/Bash]<br />
実行権限を変更</p>
<pre># chmod 755 /etc/cron.hourly/ntpdate.cron</pre>
<p>毎時実行というのは頻繁過ぎかな。<br />
まぁ、仮想OSなので四六時中立ち上げている訳ではないため大丈夫だろうと勝手に納得中です。<br />
（まずそうだったら変更しないといけないですね）</p>
]]></content:encoded>
			<wfw:commentRss>http://takuya.miyai.jp/logs/pc%e3%83%bbserver%e8%a8%ad%e5%ae%9a/ntpdate%e3%81%ae%e8%a8%ad%e5%ae%9a.html/feed</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
	</channel>
</rss>

