Skip to content


linuxでの時計合わせ

このエントリーをはてなブックマークに追加
はてなブックマーク - linuxでの時計合わせ
Share on Facebook
Post to Google Buzz
Bookmark this on Yahoo Bookmark
Bookmark this on Livedoor Clip
Share on FriendFeed
Share on GREE

Linuxでの時計合わせの方法
1.ntpサーバを利用する
   ntpdate -s [ntpサーバ名]
   例:ntpdate -s clock.nc.fukuoka-u.ac.jp | clock -w
2.手動で合わせる
   date -s hh:mm:ss
   例:date -s 12:21:30 | clock -w
3.cronで定期的に時間を合わせる
   例:毎時0分にntpサーバに問い合わせる
     0 * * * * ntpdate -s ntp.jst.mfeed.ad.jp | clock -w
※clock -w はソフトとハードの時間を合わせる

関連するかもしれない記事



他のブログも読む

Posted in Linux/FreeBSD.

Tagged with .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

*