手当たり次第に書くんだ

飽きっぽいのは本能

CentOS 6 NTP 時刻同期設定

Overview

NTP を使用した時刻同期設定を行います。今回は、インターネットマルチフィードの NTP サーバーと同期します。

/etc/ntp.conf

/etc/ntp.conf を編集します。

[root@centos-6 ~]# cp /etc/ntp.conf /etc/ntp.conf.orig
[root@centos-6 ~]# vim /etc/ntp.conf
driftfile /var/lib/ntp/drift
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp

サービス起動設定

ntpd サービスを起動し、システムの起動時に有効になるように設定します。

[root@centos-6 ~]# service ntpd start && chkconfig ntpd
[root@centos-6 ~]# chkconfig ntpd --list
CentOS 6 NTP 時刻同期設定

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)

トップへ戻る