debian源碼安裝bind9.10.6

1、安裝環境介紹:

   安裝的服務器是基於debian9.2.0環境使用源碼進行安裝的,安裝的bind版本爲bind9.10.6。安裝步驟如下:

  (1)下載bind9.10.6源碼包,下載地址如下:

      https://www.isc.org/downloads/file/bind-9-10-6/

  (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安裝位置,此位置需要提前進行創建完成。 


以上就是使用源碼包進行安裝的步驟。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章