找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 13164|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持0 Z4 @* H+ I4 {- b! P7 q/ u
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz1 _$ g; W9 c0 {# l. I
tar xzvf GeoIP.tar.gz9 P$ [4 ~7 ?+ `" A, k
cd GeoIP-1.4.8' v+ x/ k& a3 D$ W* o/ p
./configure8 ]& E  h7 e% M  g* m: g
make&&make install
6 y$ X( [$ v! p4 R+ y+ @

5 Q$ t3 g* |: L( S5 E% z% X/ X安装openssl支持 ) @. X: Y) O$ \& [
yum install openssl-devel
1 t. Q- {4 G. ~  D: Y) M% j4 R) s$ b$ @) Q+ A
下载bing9.100 u5 K4 q0 G4 N/ L, o) {5 n
wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
% {/ F, e% G2 L解压bind9.10; z* W* J. y9 a
tar xzvf bind-9.10.3rc1.tar.gz; L4 e2 o4 L. C

5 I: y' |6 O9 Z' Q进入解压目录  T9 a3 v+ {) v# E% h8 [
cd bind-9.10.3rc1& z; Q+ A. ~# ]$ y, L
2 }& I: J" S. O6 q/ }
配置测试/ z. A5 z: ^3 t( ]4 R* v2 r2 F
./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
3 G1 t1 s* X' {5 z
2 Q% q0 L9 b8 ^0 z4 n8 y编译安装
& T* H2 |) [6 {: tmake&&make install+ }( q/ Z3 q: f& o9 @  I/ V

* E5 Z2 ?; X5 n' C( n8 F以下安装openssl方法, i8 ?2 F  X2 B" ]
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz  {8 @( Q$ q9 X9 e( {5 [2 j7 U
tar xzvf openssl-fips-ecp-2.0.10.tar.gz
) m1 }% \, C9 b6 ]- ycd openssl-fips-ecp-2.0.10* \2 S+ U; w( ?- g" Y. n- h* D
./config --prefix=/usr/local --openssldir=/usr/local/ssl
7 N* \7 H- d% t3 y, Cmake&&make install
1 V' h- G' R! A! r2 Q6 R# Q$ _
# j+ V: T3 ]" k$ b- G" n( {./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
7 R# k" l" F7 V8 I; N6 r
* o' g& n. j- X  _7 S; r编译含geoip的版本以失败告终!9 Z8 l9 d( x. l* ^8 `7 S% A/ S& R6 S
  g  _/ ]7 N# F$ \- C2 Q( m& a+ k
- p  v* i: r: u7 ]$ p
  U  n" e8 Y5 b5 ^) X
* V" D! s& P" q- P
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-8-30 15:28 , Processed in 0.062622 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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