2011年5月30日月曜日

bind-9.8.0-P2へのバージョンアップ手順

bind9-8.0-P2へのバージョンアップをしてみた。既存環境はbind9.7.3です。

1.ソースファイルの入手
[root@hoge src]#wget http://ftp.isc.org/isc/bind9/9.8.0-P2/bind-9.8.0-P2.tar.gz
2.展開
[root@hoge src]#tar -zxvf bind-9.8.0-P2.tar.gz
3.コンパイル
configureのオプションは環境にあわせること。バージョンアップ前のオプションを調べるためには
ソースディレクトリのconfig.statusファイルを見るとよい。(named -Vでも確認可能だそうで)
[root@hoge src]#cd bind-9.8.0-P2
[root@hoge bind-9.8.0-P2]#./configure --prefix=/usr/local/bind980P2 --disable-ipv6 --disable-openssl-version-check --enable-threads CFLAGS=-DDIG_SIGCHASE
[root@hoge bind-9.8.0-P2]#make
[root@hoge bind-9.8.0-P2]#make install
4.既存のbindプロセス(named)を停止
[root@hoge local]#/etc/init.d/named stop
5.シンボリックリンクの差替え
今回の環境は、bindのバージョン別に/usr/localの下にインストールを行っていて、使用するバージョンを/usr/local/bindとしてシンボリックリンクを貼っているので。。。
[root@hoge local]#pwd
/usr/local
[root@hoge local]#ls -la
合計 108
drwxr-xr-x 15 root root 4096  5月 30 09:58 .
drwxr-xr-x 15 root root 4096  5月 13 04:12 ..
drwxr-xr-x  2 root root 4096  5月 11 20:58 bin
lrwxrwxrwx  1 root root   18  3月  8 11:42 bind -> /usr/local/bind973
drwxr-xr-x  9 root root 4096  1月 22 02:10 bind972p3
drwxr-xr-x  9 root root 4096  3月  8 11:41 bind973
drwxr-xr-x  9 root root 4096  5月 30 09:58 bind980P2
drwxr-xr-x  2 root root 4096  5月 11 20:58 etc
drwxr-xr-x  2 root root 4096  5月 11 20:58 games
drwxr-xr-x  2 root root 4096  5月 11 20:58 include
drwxr-xr-x  2 root root 4096  5月 11 20:58 lib
drwxr-xr-x  2 root root 4096  5月 11 20:58 lib64
drwxr-xr-x  2 root root 4096  5月 11 20:58 libexec
drwxr-xr-x  2 root root 4096  5月 11 20:58 sbin
drwxr-xr-x  4 root root 4096  5月 11 20:58 share
drwxr-xr-x  5 root root 4096  5月 30 09:52 src
[root@hoge local]#rm bind
rm: remove シンボリックリンク `bind'? y
[root@hoge local]#ls -l
合計 92
drwxr-xr-x 2 root root 4096  5月 11 20:58 bin
lrwxrwxrwx 1 root root   20  5月 30 10:03 bind -> /usr/local/bind980P2
drwxr-xr-x 9 root root 4096  1月 22 02:10 bind972p3
drwxr-xr-x 9 root root 4096  3月  8 11:41 bind973
drwxr-xr-x 9 root root 4096  5月 30 09:58 bind980P2
drwxr-xr-x 2 root root 4096  5月 11 20:58 etc
drwxr-xr-x 2 root root 4096  5月 11 20:58 games
drwxr-xr-x 2 root root 4096  5月 11 20:58 include
drwxr-xr-x 2 root root 4096  5月 11 20:58 lib
drwxr-xr-x 2 root root 4096  5月 11 20:58 lib64
drwxr-xr-x 2 root root 4096  5月 11 20:58 libexec
drwxr-xr-x 2 root root 4096  5月 11 20:58 sbin
drwxr-xr-x 4 root root 4096  5月 11 20:58 share
drwxr-xr-x 5 root root 4096  5月 30 09:52 src
6.bindプロセス(named)を起動
[root@hoge local]#/etc/init.d/named start
7.確認
[root@hoge local]#/usr/local/bind/sbin/named -v
BIND 9.8.0-P2

0 件のコメント:

コメントを投稿