ntpサーバ
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[LinuxServer]]
#shadowheader(1,"ntpサーバ");
#contents
* インストール [#c7df38d0]
-Ubuntu
sudo apt install ntp
* 設定 [#a8a980e0]
- sudo vi /etc/ntp.conf
# Use servers from the NTP Pool Project. Approved by Ubu...
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.o...
# more information.
#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst
# Use Ubuntu's ntp server as a fallback.
#pool ntp.ubuntu.com
pool ntp.nict.jp iburst
# Clients from this (example!) subnet have unlimited acc...
# cryptographically authenticated.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
* 設定反映(ntp再起動), 確認 [#n9e28347]
- ntp再起動
sudo systemctl restart ntp
- 確認
ntpq -p
* ntp serverを指定して手動同期 [#t08ef267]
+ sudo systemctl stop ntpd
+ sudo ntpdate ntp.nict.jp
+ sudo systemctl start ntpd
+ sudo ntpq -p
* ntpdig: no eligible servers [#i0f0a155]
- [[上記のコマンド>#q4be02ba]]を再実行
終了行:
[[LinuxServer]]
#shadowheader(1,"ntpサーバ");
#contents
* インストール [#c7df38d0]
-Ubuntu
sudo apt install ntp
* 設定 [#a8a980e0]
- sudo vi /etc/ntp.conf
# Use servers from the NTP Pool Project. Approved by Ubu...
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.o...
# more information.
#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst
# Use Ubuntu's ntp server as a fallback.
#pool ntp.ubuntu.com
pool ntp.nict.jp iburst
# Clients from this (example!) subnet have unlimited acc...
# cryptographically authenticated.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
* 設定反映(ntp再起動), 確認 [#n9e28347]
- ntp再起動
sudo systemctl restart ntp
- 確認
ntpq -p
* ntp serverを指定して手動同期 [#t08ef267]
+ sudo systemctl stop ntpd
+ sudo ntpdate ntp.nict.jp
+ sudo systemctl start ntpd
+ sudo ntpq -p
* ntpdig: no eligible servers [#i0f0a155]
- [[上記のコマンド>#q4be02ba]]を再実行
ページ名: