ntpのセットアップ
とりあえず、サーバの基本のログ管理が簡単にできるように、時刻同期の設定を行う。
▽ntpのインストール
yum -y install ntp
▽ntpの設定
vi /etc/ntp.conf
# Hosts on local network are less restricted.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap #追加
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server -4 ntp.nict.jp #変更
server -4 ntp.jst.mfeed.ad.jp #変更
▽手動で時刻同期
server -4 ntp.jst.mfeed.ad.jp
▽ntpサーバ起動
/etc/rc.d/init.d/ntpd start
▽ntpサーバの自動起動
chkconfig ntpd on
▽時刻同期の確認
ntpq -p
| 固定リンク | コメント (0) | トラックバック (0)


最近のコメント