找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 11214|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持  L0 K) O& w  k3 d  }1 S) X
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz7 i8 q; u& ]- r5 F% `* H9 {5 N! P
tar xzvf GeoIP.tar.gz
4 |  |/ t; ^) c3 f* Z0 ~cd GeoIP-1.4.8( a  v7 q3 a" B% I- `  N
./configure
6 L6 h. C- M3 M% r$ \6 M: {2 Tmake&&make install4 K! h) h) R9 L

6 r! V: e" L1 L! x+ |! X安装openssl支持
% V2 A- S# U+ B6 Eyum install openssl-devel9 d; s7 Y. ?  y
  U9 A9 W. f2 V! d( c4 V8 X3 {
下载bing9.10
% d" {+ C# e' Q, H- S' `wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
/ k0 `7 l8 w4 V2 m% D7 W解压bind9.10* }9 v( T3 Q! j' Q% K
tar xzvf bind-9.10.3rc1.tar.gz, k  ~: e' @0 @. U, c( O
8 R8 H. m" S% L% Y( s; a8 G* W4 _
进入解压目录) T; p( f: b8 a3 {& i
cd bind-9.10.3rc1
6 p6 U6 u! {) F  ?
1 N5 L  T: P, {% t" r: p配置测试
/ F: H; E# g- x  H; L8 o./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
8 ^) p! k: i$ U6 Z3 \; k- M! z/ a- v3 q1 i% c+ M: d
编译安装
; v- \: o& J; o0 Hmake&&make install
% |2 W! z7 @2 Y7 U* {( j 7 W/ a# J$ P$ N' k, b, ^
以下安装openssl方法" [/ W7 x( G: _! q
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
6 s! \% }3 k) }3 l; b3 \" {1 |tar xzvf openssl-fips-ecp-2.0.10.tar.gz
( }+ v( b# S9 g* w, Jcd openssl-fips-ecp-2.0.10
  {/ {0 Q4 j8 ?1 E# \: C, ^./config --prefix=/usr/local --openssldir=/usr/local/ssl  C) D. r5 x# m* @8 k
make&&make install
; s. S9 h0 ], c; a- c: q
9 E; B$ O8 C5 P./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
& M) P* L$ N9 x4 l' a+ h, [4 H; v2 V5 W5 s3 y% }2 ^' Q" B* F
编译含geoip的版本以失败告终!  |! c: d4 J, C+ P1 x
* Q9 \0 P) R2 Z0 C

# r7 |% h- _5 B7 l! V7 [9 x3 c; J9 n; Y9 V! R2 h$ \
  n2 d0 m/ V& ~
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-12-16 21:03 , Processed in 0.049149 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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