找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 12400|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
1 g2 m; Y# C+ b3 j* K7 swget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
% S1 u/ j- f/ A7 D2 Vtar xzvf GeoIP.tar.gz
+ ~4 l( s6 V9 \2 k) M0 f2 j! D! Ccd GeoIP-1.4.8
$ z& A/ R  y& x./configure
$ x" p% G# p9 Q5 `make&&make install) L/ D6 g" o- q
6 L9 Q' L( H& W- O& a* J( Q
安装openssl支持   n7 s( ?9 w8 X; O! q& Z; ?
yum install openssl-devel
* q4 L' b+ ~1 C7 A& s9 g' L9 x, S/ M2 I2 H  y
下载bing9.10, O+ G% K9 `3 H3 ?
wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz8 C- w4 r; K& }) o8 ]* G6 z
解压bind9.10) q$ }5 P, V' ~' V% i8 i
tar xzvf bind-9.10.3rc1.tar.gz
9 \4 G8 T9 D8 T/ ^
8 L! u3 z; C) e4 o% {9 g" A进入解压目录- T7 `/ `; P; q9 a
cd bind-9.10.3rc1
/ ^" F  ]# f* U; q/ d% |
1 n/ I6 K/ P: c! H# J配置测试
: p; L! u% V5 p% {./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
# N2 }2 I, M+ o% `0 A" \
/ u6 W' y' G; Y. |& N编译安装
2 r3 x7 y- s& y% [1 Jmake&&make install
; X- S. k) \& C; j  N* ~
  D2 B8 k1 o5 U0 Z# G# R以下安装openssl方法
/ @5 u0 b+ N) z. [/ Zwget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
4 s5 d' X4 m  c6 `- p( R) _# ?tar xzvf openssl-fips-ecp-2.0.10.tar.gz2 P% Z2 ^7 b" P/ L3 n
cd openssl-fips-ecp-2.0.10& B% b: E2 T9 @7 b
./config --prefix=/usr/local --openssldir=/usr/local/ssl
0 ~7 ~* z4 z/ m0 e) Umake&&make install
+ u, L: U9 Q+ F* @1 E% q# U; ?1 t5 `" j# t2 T
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl8 `6 T% g. L% s/ m+ w

. L: ^6 V" O" K6 v编译含geoip的版本以失败告终!, W4 p1 v" z. r8 W0 E1 t
0 ^* q5 \7 C+ X

% P$ P& x5 G, S2 Z9 k( b% q: C* |( d4 |0 \
0 o, H, |2 s( \  A
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-5-27 04:20 , Processed in 0.063703 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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