找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10603|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持, A2 ^8 ~0 I3 W! r  h& W
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
( }1 B3 z! W: A& M* star xzvf GeoIP.tar.gz! p, \7 l) }& N% p: O% z% G5 o
cd GeoIP-1.4.8: u2 G& s; f7 d+ i' r* Y( y9 t" `
./configure+ m$ E6 t/ U3 l( Z
make&&make install# n! u$ L! n- B
+ [0 W! o) g: Q/ b' W7 \: U
安装openssl支持 . b, k" q" m/ g9 A. A2 Y
yum install openssl-devel. [1 m: X* k. I& a* e5 [

2 K# @9 m. z' [0 I$ W
下载bing9.10
, ]  m- X- n" c9 m) s! Iwget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
9 p% o0 z: T1 P& P. @8 `) U7 x解压bind9.104 `$ i  y8 u, N3 ~
tar xzvf bind-9.10.3rc1.tar.gz% `# p3 Y; Q( H, f5 p5 U
, }; L. _: x" ~# D4 C8 s6 `, K
进入解压目录
: r0 N" y3 {/ [; B1 ~8 y8 Zcd bind-9.10.3rc1
- I- ]% ^, t3 [
$ h0 W4 E# b" D% V配置测试; H* j1 q0 e6 z9 s2 j' f
./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip
7 l- @) {& a* ~4 t1 x$ E5 }1 w6 I6 R$ R2 q
编译安装# B% a- ?6 Q' }# I$ {, f& x7 X
make&&make install
/ j% }) z* q" s8 h: M" t3 l) }' G
" a) q( s/ C' V! O. o8 B6 G以下安装openssl方法( u5 h& g$ V: o! b0 `) k& Z
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz
5 K! l# M- r& Y$ Jtar xzvf openssl-fips-ecp-2.0.10.tar.gz
) A  n$ c4 F; P" n- U1 L0 ucd openssl-fips-ecp-2.0.10
  @: B+ H# s8 J% c./config --prefix=/usr/local --openssldir=/usr/local/ssl3 \3 |/ o0 |6 H# Z
make&&make install8 v; m& X, V$ i8 J# d3 m) W

* F' H! {" v& a* Y; Q6 O./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl
' t- n1 a! T2 ?' w1 p$ p
$ R: z# U0 S( N$ d; B# @6 ^/ w编译含geoip的版本以失败告终!
# U1 w5 x/ i  d, ?
3 b$ ]  @2 _# _6 u0 C" u
( p# r9 M+ P4 R3 l; m
3 l7 `: \. @6 {* i5 `, K5 B9 W& G! u! {2 F9 p+ i
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-10 06:21 , Processed in 0.054382 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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