找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10110|回复: 1

centos6.7 bind9.10编译安装笔记

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持9 s" s" f4 S* `8 t4 D
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz" J# t9 u9 h3 v. M- i9 @/ @* ]
tar xzvf GeoIP.tar.gz7 q0 _* n" j( [/ Q) K* p
cd GeoIP-1.4.8, Z' |/ E* Y: j4 t
./configure1 W% @6 g9 N! t5 I0 z3 y) q
make&&make install( B$ M+ }7 S6 Z2 P6 F# Q
, v; Y' L- w* i
安装openssl支持
) C1 }: I* A5 e6 u: Qyum install openssl-devel9 I. W* M$ p2 s

6 ^' J) |. x+ S; c
下载bing9.10& F" h7 l0 v" i* f3 B# ^! N  K# b
wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
% T, U) w& b$ A解压bind9.103 O$ u$ y8 A( a. @! @
tar xzvf bind-9.10.3rc1.tar.gz' m7 D- G. S) s0 a/ l
8 w8 R! ?, A' f, v4 G- W4 j" ?: P$ k
进入解压目录
  S; J0 ^6 {( [& S! A$ q- V; `cd bind-9.10.3rc1) u/ j9 x$ W" |( M! j$ |% G  N
. E& ?0 Q* J/ j* U7 b
配置测试4 \  f) ~# r3 {* ~! ~. y9 }
./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip% x. j* @2 |1 r" L! s8 }

8 t# U$ q5 O: Q- h0 Q编译安装& S) o$ c; ~/ f4 W  ^/ v
make&&make install
! _+ L5 c% O9 j( f/ c' I5 q% }
! I8 B! f& e9 B7 K' }! x# A8 X. _! F5 Z以下安装openssl方法
% @- f, M3 _' Iwget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
; M5 o5 W% X$ I/ _  r* Z  `tar xzvf openssl-fips-ecp-2.0.10.tar.gz* R( V  a. k$ V( I8 N( s
cd openssl-fips-ecp-2.0.100 B; e& Z. d( ^7 B7 A
./config --prefix=/usr/local --openssldir=/usr/local/ssl& E: _$ l6 X. |$ p9 D; v3 X
make&&make install
* |! z8 R  \, [  X& f2 E0 m/ u5 z: A3 O$ T4 ?3 Q9 U, n5 D' A
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
: J# Y5 G4 z' y' I8 b  f
9 p/ D3 @5 ]7 e+ ~2 W" A编译含geoip的版本以失败告终!
; q9 t3 u" s  j0 e/ d6 Q! U7 c) ?% @! y9 L2 s3 G+ {+ l

( J/ k3 P* P7 J2 }$ h* b: S5 j9 D2 M3 a) h5 z. B# `

. `( ]: v2 Q0 E6 ~* Q8 N: X3 E
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|第一站论坛 ( 蜀ICP备06004864号-6 )

GMT+8, 2025-6-7 13:05 , Processed in 0.064653 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表