找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 12392|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
6 T* I8 J/ I4 c$ [/ \wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
. q$ d8 B' A& b: j: m& Mtar xzvf GeoIP.tar.gz" s$ |4 s+ u6 @  b
cd GeoIP-1.4.8& z9 {, [7 }+ l. }7 ?6 f
./configure
. U: o# s8 t& v# N( _make&&make install
2 }! W6 b- Y- L( M

6 p$ l3 s% V$ d/ i" L, o安装openssl支持
# C5 }' N8 _9 d5 G8 Iyum install openssl-devel
/ E6 l: z& h/ @3 U! [# l( H7 D( }
下载bing9.10! ?0 f6 }* L3 @- ^7 Y* a
wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz$ X; i4 g) N) V8 T
解压bind9.10' W% E+ `# F6 u) x! p; ?3 T, n
tar xzvf bind-9.10.3rc1.tar.gz
+ T; \  _$ \9 V) Q4 ^
) t- S3 K! u* O4 P进入解压目录" N3 I% [- T7 Q7 z* B1 l
cd bind-9.10.3rc1" g. Z2 c2 h" |  g
' y( L4 |# H% r* Y+ c+ }
配置测试" x  O2 Q+ R! D! ~' H
./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip1 o- U9 A9 _) }* Q% d1 O
# t- o/ T' R, s. l# G
编译安装  O" [  I) v6 c
make&&make install
2 E- X& _2 g( g, v $ e& P5 y' c. Q) V  e; _
以下安装openssl方法
3 s$ z+ L# ]: W+ R9 x1 E: Iwget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz; h+ N' y5 X; F. k* }. C
tar xzvf openssl-fips-ecp-2.0.10.tar.gz
, v0 }9 V8 Z# Qcd openssl-fips-ecp-2.0.107 L! I- \! g* T" q
./config --prefix=/usr/local --openssldir=/usr/local/ssl& k- Y# ~" Y+ }  {, i8 h
make&&make install
2 s$ \' @) L2 J) K% q( Q, K# K% m8 @; l2 S! D# v) a
./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
3 c0 H: j' ]. j1 ?
1 Z, ^9 `1 E( `" k+ `4 f9 {) I编译含geoip的版本以失败告终!6 m# W% E9 D' }8 Z, }

* N) h9 f& P) |7 t" C0 J" n+ z8 G. L8 x4 C. C
* m8 W! Z" F7 U% `0 T
0 ~. h' ]( W# U! L. A! E! C( _2 H- I
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-5-25 09:56 , Processed in 0.065503 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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