≪ トップ |
2005年10月29日
システム時刻自動同期設定
これもメモっとく。
ntpインストール
[root@server ~]# yum -y install ntp
システム時刻を日本標準時間に合わせる
[root@server ~]# ntpdate ntp.t.ring.gr.jp
システム時刻同期スクリプト作成
[root@server ~]# vi ntpdate
#!/bin/bash
/usr/sbin/ntpdate ntp.dnsbalance.ring.gr.jp > /dev/null
/usr/sbin/ntpdate ntp.dnsbalance.ring.gr.jp > /dev/null
実行権限付加
[root@server ~]# chmod +x ntpdate
毎日自動実行されるディレクトリへ移動
[root@server ~]# mv ntpdate /etc/cron.daily/
投稿者 ゆう : 2005年10月29日 07:15 | カテゴリー CentOS (27)
トラックバック
このエントリーのトラックバックURL:
http://www.wave440.com/blog/mt-trbk.cgi/131
http://www.wave440.com/blog/mt-trbk.cgi/131