|
如果需要geoip支持
9 F, l( L1 Q! ?0 g" y1 ywget https://launchpad.net/ubuntu/archive/primary/sourcefiles/geoip/1.6.12-1/geoip_1.6.12.orig.tar.gz
. c P: N( r# star xzvf geoip_1.6.12.orig.tar.gz
1 P2 |5 Y+ x5 F' c6 ?+ v/ hcd geoip-api-c-1.6.12
8 R' H( _! Q( l$ W/ x' O. w' eaclocal -I m4, e) Z! _6 S% U. }$ b
autoconf -vif8 n, r( n$ b2 U5 C
./configure
) t" j' i9 i5 Cmake&&make install5 @4 B$ `/ u2 }. t! {% p4 @
`0 {9 V( Y ?5 z安装openssl支持
/ F5 ~ L% ^$ T* Y% H$ `, Nyum install openssl-devel W$ Y! r/ u. w6 d; u
# S3 n# ?# Q9 G# w. l* T3 I
安装相关支持6 M5 _2 |' u; g- ~5 v
yum install -y epel-release libuv libuv-devel libcap-devel$ |5 t- K& b0 U1 r$ q5 J0 ~4 U
7 s8 _) W/ O( r. L% d* r9 Y, d
下载安装bing9.18( X- d$ `+ P5 B. X
wget https://ftp.isc.org/isc/bind9/9.18.0/bind-9.18.0.tar.xz
, q' r5 T( G; q7 U3 N9 cxz -d bind-9.18.0.tar.xz: h5 c2 A) Y* N$ w: q$ I
tar -xvf bind-9.18.0.tar3 {/ z7 E3 W* F2 F
cd bind-9.18.0' @6 `( V3 v1 ^/ {3 H
, `( a1 c1 }: j./configure --prefix=/www/webserver/bind9.18 --enable-largefile --with-openssl=/usr/local/ssl --disable-doh s. d+ @& S: M$ j _1 E
. q; e) P H9 D2 I* _: n6 M4 Nmake&&make install
, K- I7 i% w; k6 j1 e0 N& H K0 R# S0 `1 x8 c1 U! l( n3 y
新版本默认支持ipv6与mysql,编译过程中openssl不过,可尝试删除/usr/local/include/openssl中所有文件后重新编译!
. a! _( d5 ]* E# ~- j! s2 b- \ R! X) m
8 N, t+ [/ P' `2 z2 i' Z$ Q1 \ |
|