找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 13529|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
9 ~( b5 h, z- H& C- cwget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
4 J: `4 c% \" r6 B' @tar xzvf GeoIP.tar.gz- ~! I/ P+ \9 v% ?- p& q0 D
cd GeoIP-1.4.8
% v* \7 O$ ?% Y) s" f./configure
/ t; @& S3 I+ a* p$ `  @/ j0 Umake&&make install6 C2 Q) n5 a5 q: l) A

+ ?6 E$ m1 s1 v" H$ F! Y. t安装openssl支持 0 p4 Z! ^) U1 j/ o$ P
yum install openssl-devel
3 k" C* Q0 X4 f7 H! U% C" Z+ B, C7 U) B8 }5 B5 p; x9 j
下载bing9.10+ C* W% b1 ?: O7 f, E
wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
/ |3 A9 Z. q; _# O! X解压bind9.10
' n+ C6 a3 Q( ^7 Etar xzvf bind-9.10.3rc1.tar.gz- E( [* L+ W2 U

0 f; ]1 X( z# C  y' E$ E: H) q进入解压目录* o: A5 @! Y. `& ?& u0 ~
cd bind-9.10.3rc1
) Y' O  ?1 G; i+ p+ q8 e; d
) T3 b( a& U3 s" S" _配置测试
% \! F' m* {) r8 A  I./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
7 Q3 e+ z* e  B. b5 f
: H4 p/ i- F( y" ^; n5 I! }编译安装% X# U3 }6 W5 r8 c
make&&make install0 S) M) B, f2 e* K: I& ?% L+ H

: `- ?2 {" j) `以下安装openssl方法+ L+ V" ?1 B; Q, Z3 `
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
$ Q! C8 m/ o6 x4 Ntar xzvf openssl-fips-ecp-2.0.10.tar.gz
9 V  h4 r2 A  x! jcd openssl-fips-ecp-2.0.10
2 k* m' @* ]+ I, S./config --prefix=/usr/local --openssldir=/usr/local/ssl
0 ^! o1 P; k# Z9 j5 j' Cmake&&make install$ W; ]  w$ y8 v! @' w' M  q5 @+ K
  O  r- n/ ~$ W3 W5 O: ]
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
* [0 \! i; g% c) y  y! A3 ~% ?. V- D- _- V7 E
编译含geoip的版本以失败告终!
7 ~& G  n0 L" X" p, o, q% Y0 G6 U/ |1 c% v2 P) x$ I! Y

" x' n$ R; F  V9 `/ o
# z( X5 {/ l' f. a6 Q' c7 o2 b- x- W, Y4 K
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-10-24 17:47 , Processed in 0.049526 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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