找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 13404|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
& x" j: k, o" o0 G9 \3 [& E' H- Owget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz# |7 S. R# v% ?/ h! S3 E  b
tar xzvf GeoIP.tar.gz3 w, w' |- Y+ V! B8 u
cd GeoIP-1.4.8# i: {* y* R  A) p; Q! c# u
./configure
% k8 C* d% }2 S& Zmake&&make install- T; |! j! _* f3 {6 }
" {# g. }: y# u. }) }" v
安装openssl支持 $ W* [+ d! d/ b( y  r. ^% X. t
yum install openssl-devel
8 r8 g7 x+ i2 A+ f. U! g
% C# D7 I+ |* P1 L
下载bing9.104 a% o/ `+ o1 y' x  @
wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
1 }  C" w9 Q. n; i& |* Q$ f: r解压bind9.10
% r) Y: `& E1 y. I# [* |- P: ytar xzvf bind-9.10.3rc1.tar.gz
, B+ p! L& g# T, k' B& M8 h& d0 W0 N1 p9 u% f6 p, D4 T
进入解压目录
# k. m1 s) ~2 F; v- A+ s) O) |" \cd bind-9.10.3rc1
/ e4 z" _1 X6 _/ Q( P* N% ~$ K' d* e
配置测试
! c7 q5 C& K9 U8 Y3 k4 \./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
+ G3 t! a' F) K$ |$ D( h3 G/ J5 s6 X4 t( A: \0 M3 Y; G
编译安装1 G1 L1 Q+ Q7 {( ~8 z9 l
make&&make install
; I, ~& m- |! O0 c' x* Q# ` ) o! W$ k" W) d) u9 u4 t, N% `$ {
以下安装openssl方法3 [) `* Y8 S% ^4 R- A
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
/ T9 N; M7 Q, n( q7 [tar xzvf openssl-fips-ecp-2.0.10.tar.gz
6 C( N0 J/ u+ z- y) Kcd openssl-fips-ecp-2.0.10
0 P' c% |& m* J: _! _./config --prefix=/usr/local --openssldir=/usr/local/ssl
9 L# m8 q* n/ o% y% Tmake&&make install; Y' m6 @5 X: ?9 U0 r# j+ x

3 k- ?  V1 e& x. O% ]& Z' g: d./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
5 [! K' \: n: |6 m$ E( B' m) p4 @1 N
编译含geoip的版本以失败告终!0 H; L. |* \# e/ V
& [5 U6 |0 }; V6 ]+ [+ F
& K* Q0 S/ ]3 g$ P$ V: h$ e
! g" h& f2 b* R- P4 u) ~- R0 ~" h
( k$ z  q  l3 s
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-10-5 01:43 , Processed in 0.065351 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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