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 はソフトとハードの時間を合わせる
関連するかもしれない記事
- レンタルサーバーについて考える
- ログのローテート
- SELinuxを有効にしたままsambaから外付けHDD(USB)を参照する方法
- eclipseからSubversionのリポジトリに接続(subclipse)
- Linux Wineのインストール
他のブログも読む



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