找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 12645|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
3 `% I1 g& V$ Swget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
: c: T; c# r' n0 gtar xzvf GeoIP.tar.gz
1 t$ x8 }! e: A) Q2 i$ U3 Mcd GeoIP-1.4.8- r  C. W6 r& d# s9 C$ n2 F
./configure
: |/ z+ i' S0 Q9 F2 zmake&&make install
6 U& m+ y' M' Z6 u5 u
& w3 A$ [' p: a8 P
安装openssl支持 / z6 X1 ?# X/ D/ o# |; \) l
yum install openssl-devel
  ~  }, k, E" G, O$ g5 l% N7 @& u: J" [( f' N* S7 N) \* Z
下载bing9.10
2 `) u% q5 n' g+ v0 w$ Bwget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
% k, Q+ i, O: h& Y& N4 g& Y4 q解压bind9.10
7 `" O7 R- B+ ^- q2 U& Utar xzvf bind-9.10.3rc1.tar.gz
3 X; ]" X' M& E5 [5 N% I
- @3 D0 \" ^0 d4 @进入解压目录& z- T8 v3 r, u( K) d
cd bind-9.10.3rc1& \; I( T- V( f% w( S4 E

; _# w+ ?$ z/ }4 C( k配置测试
' @2 F. b! w: V+ Y7 l./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip. g1 b6 z* ?" o! H$ T+ |- m3 w

! f! O/ R& b  h" n) j编译安装* j' u3 z# x5 {8 {+ I- ~" H  ]$ p% j
make&&make install# m" W- P! r1 N
% e/ G5 E* p' P1 y0 |
以下安装openssl方法
  p# b* d- W- o# Mwget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz/ d7 _. Y( O5 l( d" B  y
tar xzvf openssl-fips-ecp-2.0.10.tar.gz
2 F8 s+ O( o& h: s  e. p! ~! B7 _cd openssl-fips-ecp-2.0.10% S; n, c; U5 E  E. f  W
./config --prefix=/usr/local --openssldir=/usr/local/ssl+ b& F$ x2 b( @+ \6 q& C
make&&make install
& [6 i7 C! a; \4 [* y; y( L" e2 W0 A. t9 x; L
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
2 B- c% y% l2 \& {0 A, m+ b# Z" S% k; I$ l1 Y, s
编译含geoip的版本以失败告终!+ J8 d2 |, f& }% l6 {
# P8 w% k/ j0 M: B7 W

2 s/ @% ~, O% A. o# a
3 T3 _; e5 g  i7 H; G3 u
- [; T* `9 h5 {9 O8 K' g8 l
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-6-25 09:49 , Processed in 0.075576 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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