找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 12646|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
* ~" k, P" k  z/ E/ H' n; Cwget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
6 U4 R) R* A/ q  ~tar xzvf GeoIP.tar.gz' K& k3 i% {% Q# k2 K
cd GeoIP-1.4.8
# K2 e  ^% M# C& @2 h, R& n./configure% ]0 `; o1 F1 a
make&&make install
  w& _( _) }& m+ V/ i! S7 h

2 F5 v' X% N6 h3 O1 [安装openssl支持
+ B; @% o. d; Eyum install openssl-devel8 O! Y8 x3 d* ?9 O3 Y
. B& w6 K4 h% T  v
下载bing9.10
4 q* Q  Q6 l5 q& k: {8 R+ b6 swget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz4 C5 P$ v7 n+ F8 }( ^! J# c! `
解压bind9.10& }6 ~( y/ x7 [/ D2 d  C& m! B' z
tar xzvf bind-9.10.3rc1.tar.gz, C" C5 Y# S* c! |

6 Z) I- E0 j% b) f进入解压目录
2 a1 ^/ _2 I5 Y2 m; r$ [# |# ?cd bind-9.10.3rc1' G. c5 o4 y7 K( K% p' S
% R, W: r! G$ l: F
配置测试
- F/ q  p5 R, s0 Z) F./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
; s( _2 M- c6 S" y# W
$ [# P; n/ s+ a& ?编译安装' E5 A5 \" S3 M# E1 _3 H
make&&make install+ m3 p: l+ {' S
2 K# B5 V" o: l, r: a8 k% A
以下安装openssl方法7 j$ f- b$ N. y" @8 q+ ]
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz: ~7 c& y: L" ~2 {* M
tar xzvf openssl-fips-ecp-2.0.10.tar.gz/ y/ a( m% v+ x
cd openssl-fips-ecp-2.0.10
4 [4 e2 q' J+ B/ a, e. K, T./config --prefix=/usr/local --openssldir=/usr/local/ssl
( u5 A  k3 ^* @9 a- q; }5 |; Pmake&&make install
+ g8 `; y7 o* V% c9 d: m- o+ n& m
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl4 S, i+ v( |1 ?) n1 Y9 C5 b& D
2 V- O  b, `$ ~8 h, v+ Z6 g/ L9 W$ d: a
编译含geoip的版本以失败告终!
; J; |$ U5 P! V& b; M& |8 H
6 G" H" A) j% W- E1 j8 D- i
  L- T  ~4 V9 Q0 J: E5 H; Y' l% Q  f
* D  F; s  G0 c- e4 G
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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