找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 12616|回复: 0

Centos7 bind9.18编译安装笔记

[复制链接]
发表于 2022-2-12 20:59:35 | 显示全部楼层 |阅读模式
如果需要geoip支持
! O  a. ^: U" h8 l# _5 }wget https://launchpad.net/ubuntu/archive/primary/sourcefiles/geoip/1.6.12-1/geoip_1.6.12.orig.tar.gz
2 W- n8 X8 ^" G1 x- F% h. K9 Jtar xzvf geoip_1.6.12.orig.tar.gz
1 s1 w. |/ \( L" R2 e0 Ncd geoip-api-c-1.6.12/ K- W$ R7 U% N$ p$ L
aclocal -I m4& O+ W! N- @- H6 z3 x# ^$ c) s
autoconf -vif4 {: U6 f0 a7 N7 c% p
./configure$ Z. j! G/ f. ]: m$ a( @3 K0 d: h
make&&make install6 a9 B: E$ o( I+ R
# _6 J( `" W8 k( i! T! f/ n
安装openssl支持
9 ^2 q* T/ m1 U4 r- B9 ~yum install openssl-devel
! J3 n( ~, l' t0 o' u5 _+ U. S" `/ Y8 h6 J- H! m. e
安装相关支持7 A3 k1 p/ G0 u$ c  f6 ^, g
yum install -y epel-release libuv libuv-devel  libcap-devel" A& t( U& {3 h. q2 m/ k& G

+ q! {+ \2 R* z$ u3 ]下载安装bing9.186 I; S; B0 M/ X) x% c
wget https://ftp.isc.org/isc/bind9/9.18.0/bind-9.18.0.tar.xz
+ Z7 T( K& O% R, yxz -d bind-9.18.0.tar.xz
6 E, ]4 S7 V! Q: F5 s+ F) N' `tar -xvf bind-9.18.0.tar
9 h7 K5 r* C* Kcd bind-9.18.0
' b$ n7 h/ J9 k$ j
6 R1 K( b, g" J0 L  P6 [5 c6 u./configure --prefix=/www/webserver/bind9.18  --enable-largefile  --with-openssl=/usr/local/ssl --disable-doh; V# O& J' Q6 ]5 `
" ?7 k( p1 f6 i* ?/ E
make&&make install8 a% I0 f! g! O8 U# l7 |$ u
- p$ z' ^# S: ]- x  B/ U  u
新版本默认支持ipv6与mysql,编译过程中openssl不过,可尝试删除/usr/local/include/openssl中所有文件后重新编译!8 _( h: D6 M" F& d

* ^* n  a  x* S6 s3 l& ]' E9 `/ a- N- L. E9 S* F
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-11-19 14:17 , Processed in 0.062540 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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