ナビゲーション
FrontPage
FreeBSD
Linux
Citrix XenServer
VMware ESXi
Unixコマンド
MySQL
PostgreSQL
Windows
CMS/CRM
クラウド
用語
PHPスクリプト
Bashシェルスクリプト
Rubyスクリプト
開発日記
検索
ツールボックス
新しいページの作成
バックアップの表示
外部のリンク元
最近更新したページ
全ページ
ヘルプ
凍結
アップロード
ページ名の変更
最新の40件
2016-08-17
Linux/NagiosQL
Linux/CentOSチューニング
2016-02-23
Linux/ソフトウェアRAID復旧手順
2016-02-18
FreeBSD/DHCP
FreeBSD/squid
2016-02-15
Unixコマンド/file
2016-02-05
FreeBSD/DynaBook
FreeBSD/Linux compatibility
2016-01-21
PHPスクリプト/PEAR DBインストールできない
PHPスクリプト/PEAR DB
2016-01-20
PHP/フレームワーク/Zend Framework
PHP/フレームワーク
FreeBSD/Postfix+amavisd+clamav
2016-01-15
FreeBSD/sl
2015-12-04
Unixコマンド/dig
Unixコマンド/nslookup
Unixコマンド/traceroute
Linux/rsync
FreeBSD/rsync
Unixコマンド/vipw
2015-11-25
Linux/Postfix+MySQL+Postfix AdminによるバーチャルSMTPサーバの構築
Linux/Postfix + postgrey
2015-11-24
Linux/Postfix + amavisd + clamav
2015-05-25
Unixコマンド/ifconfig
2015-05-23
Unixコマンド/netstat
Unixコマンド/route
Unixコマンド/lsof
Unixコマンド/disown
Unixコマンド/time
Unixコマンド/crontab
2015-05-22
Unixコマンド/nohup
Unixコマンド/fgとbg
Unixコマンド/nice
Unixコマンド/kill
Unixコマンド/jobs
Unixコマンド/restor
Unixコマンド/dump
Unixコマンド/uncompress
Unixコマンド/compress
Unixコマンド/zcat
total:
1486
today:
1
yesterday:
0
now:
2
本文
ノート
?
編集
差分
一覧
FreeBSD/ntpd の編集
*ntpdによる時刻同期 [#v6c4df4a] #contents **ntpdの特徴 [#c59df949] ntpdはシステムに問題が起きないように、少しずつ時刻を合わせて行きます。 初めに起動する前に ntpdateコマンドで時刻を合わせておく事をお勧めします。 **/etc/ntp.confの編集 [#l23ed468] restrict default ignore restrict 127.0.0.1 restrict 192.168.1.0 mask 255.255.255.0 nomodify nopeer notrap restrict 202.224.32.4 nomodify notrap noquery # ntp.asahi-net.or.jp restrict 210.173.160.27 nomodify notrap noquery # ntp1.jst.mfeed.ad.jp restrict 210.173.160.57 nomodify notrap noquery # ntp2.jst.mfeed.ad.jp restrict 210.173.160.87 nomodify notrap noquery # ntp3.jst.mfeed.ad.jp server -4 ntp.asahi-net.or.jp minpoll 6 maxpoll 10 prefer server -4 ntp1.jst.mfeed.ad.jp minpoll 8 maxpoll 15 server -4 ntp2.jst.mfeed.ad.jp minpoll 8 maxpoll 15 server -4 ntp3.jst.mfeed.ad.jp minpoll 8 maxpoll 15 logconfig -syncstatus logfile /var/log/ntpd.log pidfile /var/run/ntpd.pid driftfile /var/db/ntpd.drift ***小さいntp.conf [#h72dda9d] ■その1 server ntp1.tohoku.ac.jp driftfile /etc/ntp.drift ■その2 server ntp1.jst.mfeed.ad.jp server ntp2.jst.mfeed.ad.jp server ntp3.jst.mfeed.ad.jp driftfile /etc/ntp.drift **/etc/rc.confの編集 [#x223806f] # NTPD ntpd_enable="YES" ntpd_sync_on_start="YES" **起動 [#tb05c872] # /etc/rc.d/ntpd start **確認 [#ycd3e5f2] # ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== orion.asahi-net 202.224.53.11 2 u 6 64 1 9.213 -1.612 0.002 ntp1.jst.mfeed. 210.173.160.56 2 u 5 256 1 8.065 0.099 0.002 ntp2.jst.mfeed. 133.243.236.19 2 u 4 256 1 9.527 0.550 0.002 ntp3.jst.mfeed. 210.173.160.56 2 u 3 256 1 8.920 0.343 0.002
タイムスタンプを変更しない
*ntpdによる時刻同期 [#v6c4df4a] #contents **ntpdの特徴 [#c59df949] ntpdはシステムに問題が起きないように、少しずつ時刻を合わせて行きます。 初めに起動する前に ntpdateコマンドで時刻を合わせておく事をお勧めします。 **/etc/ntp.confの編集 [#l23ed468] restrict default ignore restrict 127.0.0.1 restrict 192.168.1.0 mask 255.255.255.0 nomodify nopeer notrap restrict 202.224.32.4 nomodify notrap noquery # ntp.asahi-net.or.jp restrict 210.173.160.27 nomodify notrap noquery # ntp1.jst.mfeed.ad.jp restrict 210.173.160.57 nomodify notrap noquery # ntp2.jst.mfeed.ad.jp restrict 210.173.160.87 nomodify notrap noquery # ntp3.jst.mfeed.ad.jp server -4 ntp.asahi-net.or.jp minpoll 6 maxpoll 10 prefer server -4 ntp1.jst.mfeed.ad.jp minpoll 8 maxpoll 15 server -4 ntp2.jst.mfeed.ad.jp minpoll 8 maxpoll 15 server -4 ntp3.jst.mfeed.ad.jp minpoll 8 maxpoll 15 logconfig -syncstatus logfile /var/log/ntpd.log pidfile /var/run/ntpd.pid driftfile /var/db/ntpd.drift ***小さいntp.conf [#h72dda9d] ■その1 server ntp1.tohoku.ac.jp driftfile /etc/ntp.drift ■その2 server ntp1.jst.mfeed.ad.jp server ntp2.jst.mfeed.ad.jp server ntp3.jst.mfeed.ad.jp driftfile /etc/ntp.drift **/etc/rc.confの編集 [#x223806f] # NTPD ntpd_enable="YES" ntpd_sync_on_start="YES" **起動 [#tb05c872] # /etc/rc.d/ntpd start **確認 [#ycd3e5f2] # ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== orion.asahi-net 202.224.53.11 2 u 6 64 1 9.213 -1.612 0.002 ntp1.jst.mfeed. 210.173.160.56 2 u 5 256 1 8.065 0.099 0.002 ntp2.jst.mfeed. 133.243.236.19 2 u 4 256 1 9.527 0.550 0.002 ntp3.jst.mfeed. 210.173.160.56 2 u 3 256 1 8.920 0.343 0.002
テキスト整形のルールを表示する
ログインまたはアカウント作成