找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 12648|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
: Y& d7 T5 R0 ~2 U( L( v0 P- Fwget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
$ y" Y1 \3 F8 {) m! d# C0 I8 |1 p& `tar xzvf GeoIP.tar.gz/ f# {5 }7 v/ ^, l0 [  Q. v& v
cd GeoIP-1.4.8. o; y$ ?4 u* ~4 a
./configure
/ s# x7 f( Y" V; wmake&&make install
* s( V7 o1 X) ?- `5 I+ s  k

" L3 u3 {( c, o6 w2 e5 M9 u8 _& o安装openssl支持
' o& l1 d  g) qyum install openssl-devel" q" y4 ]* `8 u. f7 r/ V/ P

2 E' q; R% F; J- \$ |" ]
下载bing9.10
# n- E, Q# j7 _) V8 A  W' swget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz! D4 `2 f& p9 f+ A6 k! `+ m( ~8 R
解压bind9.10- s- S2 u$ g, D7 X  ~1 w
tar xzvf bind-9.10.3rc1.tar.gz' P' J1 b# B, X( L9 B- H
" r) G& k: H% @* f
进入解压目录) c' q* Z" i8 p" T
cd bind-9.10.3rc1
  h$ }5 H- e# B' @3 m4 ]
' @0 }% \8 {5 t3 I& p0 c配置测试
. ?: ?  X9 J4 V4 l. J# P) ]# R6 l./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
: j4 x" O' B! T4 A& h( A2 f( m) _! L- ~- @! D, h7 n3 z
编译安装
9 ?% ^/ I/ t2 x( a2 h" Z. Z; Mmake&&make install
, {% c, Y0 ?5 B. K& @: w, k 2 D2 Y8 k- }4 o+ G+ ]2 ~
以下安装openssl方法" K7 O$ s. n& g: p+ u' b
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz, f- F% g/ J  u
tar xzvf openssl-fips-ecp-2.0.10.tar.gz
& l: e( c' F% ^" L: I9 qcd openssl-fips-ecp-2.0.10
+ n1 C& m4 U0 s0 @9 R) [" M./config --prefix=/usr/local --openssldir=/usr/local/ssl- k# S0 X+ y7 }, R5 D( ^+ ]) `
make&&make install5 w  B: n% s$ P9 K: _$ W  A3 q
$ m" t3 z' d2 a# F: T6 x
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl; B* @; a& {; `) a$ _+ t5 I& z
6 M: m3 v3 b+ u' x9 Z4 q
编译含geoip的版本以失败告终!
1 B4 `% S5 x: G) J6 K/ L1 W, z/ G+ S" T5 \# C

4 l2 a( y: W* j0 n7 J% @! u# C* p) R, S1 c* p* G, w
9 J' k: A# V# I6 F" }, p
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-6-25 11:13 , Processed in 0.062520 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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