找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 13048|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
2 ?5 X3 S0 U. owget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
% X$ y1 k) B- V7 V& star xzvf GeoIP.tar.gz2 y! I) W2 B) n* O1 W& t8 H8 G- \
cd GeoIP-1.4.8( h9 T* g6 o9 N2 M/ Q0 f
./configure
; _5 r& _. m# a3 d' h7 c( r  ^make&&make install
3 K" q- [) F+ u8 V# k- ]7 u
" [' I3 f. `4 E$ E2 |8 Z8 C
安装openssl支持 " M; t. R3 V' |! s" \
yum install openssl-devel
( \+ [2 t% `% `/ d- E
) l4 \) t/ W  Z0 c# ?
下载bing9.10
6 H' Q' h4 A# J- V, k" S% X* ~wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz; R; v1 H7 F' \0 S7 l* C
解压bind9.10
. [1 `( L3 l0 h8 K' w. Etar xzvf bind-9.10.3rc1.tar.gz4 U/ a  V: j& C
; y  U1 M8 h. C" B6 _/ }6 l
进入解压目录) d. f& S, y6 D) `8 v4 i
cd bind-9.10.3rc1
7 V3 `# |, @0 a9 }1 O# i! j! B" U. U, v
9 Y, W" H' b$ k, R' M( }" R% R配置测试
/ F/ X  `' N' |/ C- P, H) j./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
2 D- V- l# Z, g# w4 S/ [8 i0 N: D2 ^$ r& p9 E1 |  X/ @
编译安装0 y: f" t0 g# [2 A5 Y
make&&make install
' |0 c9 x  T' a: L
5 y- X% w, S. t1 ~$ u! |以下安装openssl方法: V+ W/ s# z9 V$ A; }
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
5 [( i3 o) t2 J7 e$ ?tar xzvf openssl-fips-ecp-2.0.10.tar.gz
# o9 M0 y: O5 V4 xcd openssl-fips-ecp-2.0.10
# k7 S1 w$ }1 ?0 _9 P./config --prefix=/usr/local --openssldir=/usr/local/ssl
$ y1 T( A; `& F( q5 ^make&&make install
& ~: u9 u; W9 H1 [# ~- m) }& @
: i! e- \8 m5 _" e& d) T./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
) k  l! p7 B, I, x7 k3 N( L7 g& N4 u* D- E8 L- {' K
编译含geoip的版本以失败告终!; b6 G+ o: U/ _) l" y2 ]: `: t
7 X4 y( D' X* ]1 \! h& z& o- h

- W9 o4 k$ f% C5 W
/ C* {& B4 S; c* c8 H2 v( B0 U) l: x: Y) C3 h$ g
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-8-15 04:34 , Processed in 0.043352 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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