您的位置:首页 > 其它

debian源码安装bind9.10.6

2017-12-11 18:09 323 查看
1、安装环境介绍:
安装的服务器是基于debian9.2.0环境使用源码进行安装的,安装的bind版本为bind9.10.6。安装步骤如下:
(1)下载bind9.10.6源码包,下载地址如下:
https://www.isc.org/downloads/file/bind-9-10-6/[/code]  (2)我的环境中,存放位置为:/tmp/pack/,下载完毕后请使用winscp进行拖入到相关目录。
(3)安装openssl运行库。在使用源码进行编译安装bind中,需要openssl运行库的支持,否则会出现以下报错:
checking for OpenSSL library... configure: error: OpenSSL was not found in any of /usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw; use --with-openssl=/path If you don't want OpenSSL, use --without-openssl
如遇到上述报错请先安装openssl运行库,命令如下:
apt install libssl-dev
(4)解压bind安装包,进行编译安装。命令如下:
cd /tmp/pack
tar xvzf bind-9.10.6
cd bind-9.10.6/
./configure --prefix=/usr/local/etc/bind9 --enable-threads --enable-largefile --disable-ipv6
make&make install
命令行--prefix=/usr/local/etc/bind9表明了我的bind安装位置,此位置需要提前进行创建完成。

以上就是使用源码包进行安装的步骤。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  bind 源码