クラウドで 伸びる人沈む人 |
|
|
|
NTPサーバを使って、毎日、正確な時刻を設定する
<IT技術の処方箋:NTPサーバを使って、毎日、正確な時刻を設定する> 毎日、時刻の補正をするためには、 cron を使って ntpdate プログラムを定期的に実行すればOKです。 /etc/cron.daily/ntpdate.sh ファイルを作成して 1 日に 1 回 NTP サーバーと時刻の同期を行うようにしましょう。 /etc/cron.daily/ntpdate.sh のの中身は、↓です。 #!/bin/sh /usr/sbin/ntpdate ntp.ring.gr.jp 最後に実行権限を与えておしまいです。 # chmod 755 /etc/cron.daily/ntpdate.sh ※関連 時刻を正確に合わせる方法 http://www.searchman.info/tips/1810.html NTPサーバーをインストールする http://www.searchman.info/tips/1820.html 自分自身がNTPサーバーとなって、他へ正確な時刻を伝える http://www.searchman.info/tips/1830.html NTPサーバを使って、毎日、正確な時刻を設定する http://www.searchman.info/tips/1840.html
慣れてきましたか?慣れてきたら、
Linux自宅サーバーの注意点チェック |