找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 13555|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持% D" m# A) b* S  s( G
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz$ f) Q5 ~+ j. e, c3 U! e! k
tar xzvf GeoIP.tar.gz7 H9 d+ T) u! J4 ~( Y, C- D
cd GeoIP-1.4.83 v4 k# p3 Q3 ?  |; |  I" ?' t0 P1 F
./configure
' l1 N! |9 q0 \4 n/ h! h- umake&&make install
8 V) Y' F, d9 h

$ f; M* D# U- A7 h, X  p& U! X安装openssl支持 2 P0 V$ c# }+ A# h0 w
yum install openssl-devel
8 t) [: e: G* D, W* Q
7 H1 h5 y5 D' h) d
下载bing9.10
& u$ L- w, {- H9 q/ y. awget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz9 L( \: W$ b, X; p9 r1 ^
解压bind9.10
) F- W' y8 ^+ mtar xzvf bind-9.10.3rc1.tar.gz
( F4 m- d9 D; D/ B- |1 V' [3 s' @! H& q* ?
进入解压目录* M: B2 P/ ^6 q: H5 d. ^
cd bind-9.10.3rc12 [  n# V# H& k7 v

2 J# z4 o& j+ F$ L配置测试
; j3 R2 Z. g$ z# f" O./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip# I3 _% u' g7 ]0 c, L1 V4 a

! H6 K/ B% l# ?, Z编译安装  v2 x/ Z* ~) {7 _+ j
make&&make install% U- a8 Y" p9 A; C
: u) M3 i1 |6 Y8 b
以下安装openssl方法/ p: ]7 q, W: Q1 ]& P  ?9 A
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
6 g( `! {. {" q, A! Utar xzvf openssl-fips-ecp-2.0.10.tar.gz
) D+ Z4 E0 A  u6 s9 |) x! [. \cd openssl-fips-ecp-2.0.10# m3 l$ m# u: k' R8 I& j6 m
./config --prefix=/usr/local --openssldir=/usr/local/ssl
8 |! Y2 w- X2 Umake&&make install' L0 y) ~$ z+ x+ ^

- }2 Z9 k* a/ ?  Q./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl1 h+ c, C, z" ?' r5 e
$ h( S5 G2 C5 `' V# ^) c$ F8 p+ _
编译含geoip的版本以失败告终!# U& @: h3 F# L

4 U- |% l- }' _( J1 ~/ O3 _, `, {! Z* B  C3 n* o% }5 T

" f; F4 z% `* }! s" d4 L6 `" F- N* l  Y2 f' G  M
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-10-30 12:11 , Processed in 0.057915 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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