找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 11490|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持4 d% v: c& S9 j+ ]- ~' Q# J2 |
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz0 C- B6 O. C8 I  _
tar xzvf GeoIP.tar.gz1 a- Y' g. h, s* P
cd GeoIP-1.4.8
4 j- d) I0 r+ O+ ^# C; f./configure$ f0 E9 i) f3 s1 E- `- h$ |; _* C+ I
make&&make install
) h1 Y0 I8 Q: E
  @1 Z$ j3 ~/ r6 y- O  D
安装openssl支持
3 {8 @( r! X! b0 z* r: g. V' gyum install openssl-devel
! V8 Z9 T' p2 E3 Z1 \2 u2 K* b. _2 `% C5 l
下载bing9.10
/ H% Z% X2 _. ^$ M+ [% b/ j) K0 _wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz- r8 y! S, g: \( F/ @
解压bind9.10! c# J: _# W% y6 k$ \
tar xzvf bind-9.10.3rc1.tar.gz
, l2 k: V, _' W8 s4 h( x$ b+ W
/ n+ V% H2 q& N9 ]0 j& ^8 d进入解压目录  o/ j3 V$ ?3 o9 [7 R( [
cd bind-9.10.3rc1
. t, s$ h2 H' I' f* ?) X' N( r" ]* J5 w& o+ Z
配置测试
) t! t6 V. w) X. E8 O4 d5 F3 h./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
9 D; ~6 }3 W+ w% n6 Y2 a9 A4 x
7 _1 H; ]) F& J/ Z. z编译安装( n# B7 ], h$ n. c4 g
make&&make install( k. n9 ?/ f7 U  m

$ C0 T% ]( e+ e1 W! i& W以下安装openssl方法
! g/ {1 k" t) q1 {1 Pwget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz" b5 v4 B$ l4 b; O! f
tar xzvf openssl-fips-ecp-2.0.10.tar.gz
) x; u* m, Q$ wcd openssl-fips-ecp-2.0.10
7 x. f: o4 t! d! i9 X./config --prefix=/usr/local --openssldir=/usr/local/ssl* C4 S# s% H! F6 D9 u9 Q
make&&make install& x. U- i& K, V" ], E
; D. H' @- h, j: ?: `
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl; J! J  a2 K- K& P5 x3 b
+ ^9 |5 D* V* s# G
编译含geoip的版本以失败告终!
! Z2 H, i! D/ k% C
  g: @4 x! k" |/ v* |& o- r0 O: g/ m. Z' t9 Z
5 X8 W+ {' k( l- b( z/ g% N
4 t3 U) }+ v! K3 v& o
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-2-7 02:22 , Processed in 0.051151 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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