|
|
如果需要geoip支持4 a9 B! x7 [* ~
wget https://launchpad.net/ubuntu/archive/primary/sourcefiles/geoip/1.6.12-1/geoip_1.6.12.orig.tar.gz1 x7 b/ v0 D8 g. a8 f
tar xzvf geoip_1.6.12.orig.tar.gz
1 f8 ?7 }: f3 B4 s% u; ~cd geoip-api-c-1.6.127 k; T. E: o" c1 s& c
aclocal -I m4
1 X) {' P# U9 M _3 ?autoconf -vif, x3 V: y0 y* O0 @* L
./configure
/ _- E9 U% F$ K6 |! P0 O- Mmake&&make install
1 r0 c3 n9 [& M; k7 v& H8 k- b
, ]3 n3 F- z2 a6 a0 [! C3 u- r" [3 `安装openssl支持2 s$ I* r: Q( v. x% B/ U
yum install openssl-devel* S% t% X4 K0 N3 s# [
1 G6 |& g1 |+ T8 ]9 R% _5 h; I安装相关支持
1 m& B% a5 }+ ~yum install -y epel-release libuv libuv-devel libcap-devel
+ ]2 v8 U# x) r" d' h& Y
[* o0 o* j: v# _) u, f下载安装bing9.18
0 H: G+ X5 m: |. ]' P/ wwget https://ftp.isc.org/isc/bind9/9.18.0/bind-9.18.0.tar.xz6 i* C: T9 c, _6 F! |
xz -d bind-9.18.0.tar.xz1 |& l; n% q: _2 p
tar -xvf bind-9.18.0.tar
8 Q$ `9 e! C ]# c9 Y/ c+ P; M1 Ncd bind-9.18.08 d9 n: {4 S8 _3 ]8 F* f
) t( d+ q- G; @1 S4 c/ ^3 |./configure --prefix=/www/webserver/bind9.18 --enable-largefile --with-openssl=/usr/local/ssl --disable-doh# w; S" H' c, d' w! h: m
8 y, m K% V2 r, e5 ^0 Z% Smake&&make install3 U1 D5 s) t1 E/ P, l
9 X" e6 b6 d+ x. `( _5 x) X新版本默认支持ipv6与mysql,编译过程中openssl不过,可尝试删除/usr/local/include/openssl中所有文件后重新编译!
0 `) s0 T9 P4 T6 ]3 h& c0 ], T& O. w( f6 k
1 e( H6 o+ @: t' | |
|