NTP 公式サイト から NTP のソースファイルをダウンロードしてインストールを行います。
NTP のダウンロードとインストール
NTP のソースファイルを NTP 公式サイト からダウンロードしてコンパイル、インストールを行います。
# wget -P /usr/local/src http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.4.tar.gz![](/images/enter.gif)
# mkdir /usr/local/ntp-4.2.4![](/images/enter.gif)
# cd /usr/local/src![](/images/enter.gif)
# tar xzf ntp-4.2.4.tar.gz![](/images/enter.gif)
# cd ntp-4.2.4![](/images/enter.gif)
# ./configure --prefix=/usr/local/ntp-4.2.4![](/images/enter.gif)
# make![](/images/enter.gif)
# make install![](/images/enter.gif)
![](/images/enter.gif)
# mkdir /usr/local/ntp-4.2.4
![](/images/enter.gif)
# cd /usr/local/src
![](/images/enter.gif)
# tar xzf ntp-4.2.4.tar.gz
![](/images/enter.gif)
# cd ntp-4.2.4
![](/images/enter.gif)
# ./configure --prefix=/usr/local/ntp-4.2.4
![](/images/enter.gif)
# make
![](/images/enter.gif)
# make install
![](/images/enter.gif)
— configure オプションの解説
- インストール先のディレクトリを設定します。
- –prefix=/usr/local/ntp-4.2.4
NTP のディレクトリを /usr/local/ntp としてアクセスできるようにシンボリックリンクを作成します。
# ln -sfn /usr/local/ntp-4.2.4 /usr/local/ntp![](/images/enter.gif)
![](/images/enter.gif)