找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 11813|回复: 1

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

[复制链接]
发表于 2015-11-30 11:11:59 | 显示全部楼层 |阅读模式
如果需要geoip支持
# ?$ o: r( w# W, Fwget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz, g: j9 H4 y1 m2 }6 T5 \; _
tar xzvf GeoIP.tar.gz7 g! C( f0 x- I
cd GeoIP-1.4.8
) f7 D7 I( U( k  {4 u: h./configure" {5 q5 U7 P" n! C4 ]4 Z+ g# F
make&&make install: c, @3 s9 t8 {( |; U
7 T9 B; a9 O' l( i$ f$ X  E
安装openssl支持
8 ]) `7 G8 R+ L' f# w5 S  syum install openssl-devel' ?8 H4 ?. B7 i
8 Q1 @, e5 \" ]$ c; f
下载bing9.10: y* z/ u: O( Q! \; Z* c
wget http://ftp.isc.org/isc/bind9/9.10.3rc1/bind-9.10.3rc1.tar.gz
5 [; n9 N8 k/ J5 U5 V解压bind9.10! m& m4 `* Q/ w
tar xzvf bind-9.10.3rc1.tar.gz4 a1 Z# E- e5 N

2 C& |3 s, }3 O进入解压目录
; I% ]5 g* \8 d; b1 Ocd bind-9.10.3rc1
. U6 ], H* g* @9 l1 i4 ]. X9 A) l
; U  y: M' ?+ f; J配置测试. G: Q4 j. A! h# E' ]- n) {
./configure --prefix=/usr/bind9 --with-dlz-mysql --enable-largefile --enable-ipv6=yes --with-geoip1 v1 Q! Q5 a4 E+ X/ N& p" V
5 J" m" y( w4 J1 o1 x+ |
编译安装1 S4 P1 F6 p: M* u
make&&make install" c5 z; O& _1 r
# @2 j% b: O% s+ {% a. C; C* W- H
以下安装openssl方法# c$ ^/ H& i% u/ f, p
wget http://www.openssl.org/source/openssl-fips-ecp-2.0.10.tar.gz( U! J" G. p7 ^
tar xzvf openssl-fips-ecp-2.0.10.tar.gz
0 S& ]9 ~8 o7 P1 D% Z" H, {8 m3 j/ Hcd openssl-fips-ecp-2.0.10
4 p* F2 o# K! N# o; d6 h0 b./config --prefix=/usr/local --openssldir=/usr/local/ssl
  Z* H. t. g  S3 b# _make&&make install
: M3 k$ P) q* d5 O6 Q# M4 }! @
* K. m3 P* B5 w) T9 J; ~) m" Q./configure --prefix=/www/bind9 --with-dlz-mysql=/usr --enable-largefile --enable-ipv6=yes --with-geoip --disable-openssl-version-check --with-openssl=/usr/local/ssl, Y0 O* p! o1 P

5 b* _8 |# D; s. x编译含geoip的版本以失败告终!
8 }( }2 M# j8 o2 h
3 Q4 `; R5 E. w, P* m! ?) ]% O6 h% f- ]1 P$ E
; D0 t0 i' p, J/ l4 z/ z
  E# O6 X' [6 S
 楼主| 发表于 2015-11-30 17:41:39 | 显示全部楼层
/usr/local/ssl/include/openssl/opensslv.h"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-3-23 16:45 , Processed in 0.068065 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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