VOOZH about

URL: https://qiita.com/osktak/items/d775555df0a88d23f021

⇱ 【Debian 8 Jessie】時刻を同期する #Linux - Qiita


👁 Image
2

Go to list of users who liked

2

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@osktak

【Debian 8 Jessie】時刻を同期する

2
Posted at

この記事は、下記の記事を構成している記事のひとつです。
さくらのVPS と Debian 8 Jessie で独自ドメインのWebサイトを立ち上げる手順

・さくらのVPS(プラン512)
・Debian 8 Jessie(さくらのVPS カスタムインストール)
の環境を前提にしています。

ntpをインストールする

hoge$
sudo aptitude -y install ntp

時刻を同期するntpサーバーを設定する

hoge$
sudo vi /etc/ntp.conf
/etc/ntp.conf
# server 0.debian.pool.ntp.org iburst
# server 1.debian.pool.ntp.org iburst
# server 2.debian.pool.ntp.org iburst
# server 3.debian.pool.ntp.org iburst
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp

設定したら、ntpを再起動します。

hoge$
sudo systemctl restart ntp

下記のコマンドで動作確認します。

hoge$
sudo ntpq -p
 remote refid st t when poll reach delay offset jitter
==============================================================================
+ntp1.jst.mfeed. 133.243.236.17 2 u 682 1024 377 0.758 0.431 0.086
*ntp2.jst.mfeed. 133.243.236.17 2 u 83 1024 377 0.778 0.026 0.145
+ntp3.jst.mfeed. 133.243.236.17 2 u 747 1024 377 0.945 -1.850 0.826

ntpを自動起動するようにする

hoge$
sudo systemctl enable ntp
2

Go to list of users who liked

2
0

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2

Go to list of users who liked

2