Nginx 反向代理 Varnish做网站缓存加速器_freeke

上传人:ni****g 文档编号:561177762 上传时间:2023-02-08 格式:DOC 页数:16 大小:238KB
返回 下载 相关 举报
Nginx 反向代理 Varnish做网站缓存加速器_freeke_第1页
第1页 / 共16页
Nginx 反向代理 Varnish做网站缓存加速器_freeke_第2页
第2页 / 共16页
Nginx 反向代理 Varnish做网站缓存加速器_freeke_第3页
第3页 / 共16页
Nginx 反向代理 Varnish做网站缓存加速器_freeke_第4页
第4页 / 共16页
Nginx 反向代理 Varnish做网站缓存加速器_freeke_第5页
第5页 / 共16页
点击查看更多>>
资源描述

《Nginx 反向代理 Varnish做网站缓存加速器_freeke》由会员分享,可在线阅读,更多相关《Nginx 反向代理 Varnish做网站缓存加速器_freeke(16页珍藏版)》请在金锄头文库上搜索。

1、Freeke 2008-12-10Nginx 反向代理+Varnish 技术实现目标:一、 Nginx 反向代理1、 安装条件:Nginx: http:/sysoev.ru/nginx/nginx-0.6.32.tar.gzSSL: http:/www.openssl.org/source/openssl-0.9.8g.tar.gzPcre: ftp:/ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.7.tar.gzZlib: http:/ 安装:l Ssl安装:rootChinarenservice oracle# tar -zx

2、vf openssl-0.9.8g.tar.gzrootChinarenservice oracle# cd openssl-0.9.8grootChinarenservice openssl-0.9.8g# ./config -prefix=/usr/local/openssl/rootChinarenservice openssl-0.9.8g# makerootChinarenservice openssl-0.9.8g# make installl Pcre 安装:rootChinarenservice oracle# tar -zxvf pcre-7.7.tar.gzrootChin

3、arenservice oracle# cd pcre-7.7rootChinarenservice pcre-7.7# ./configure -prefix=/usr/local/pcrerootChinarenservice pcre-7.7# makerootChinarenservice pcre-7.7# make installMake 时报错:libtool: ignoring unknown tag CXXlibtool: unrecognized option -DHAVE_CONFIG_HTry libtool -help for more information.mak

4、e1: * pcrecpp.lo Error 1make1: Leaving directory /home/beijing/pcre-7.7make: * all Error 2原因:pcre-7.7 configuration summary: Install prefix . : /usr/local/pcre C preprocessor . : gcc -E C compiler . : gcc C+ preprocessor . : C+ compiler . : Linker . : /usr/bin/ld C preprocessor flags . : C compiler

5、flags . : -O2 C+ compiler flags . : Linker flags . : Extra libraries . :没有装GCC C+包:gcc-c+-3.4.6-8.i386.rpm libstdc+-devel-3.4.6-8.i386.rpml Zlib 安装:rootChinarenservice oracle# tar -zxvf zlib-1.2.3.tar.gzrootChinarenservice oracle# cd zlib-1.2.3rootChinarenservice zlib-1.2.3# ./configure -prefix=/usr

6、/local/zlibrootChinarenservice zlib-1.2.3# makerootChinarenservice zlib-1.2.3# make installl Tcmalloc 安装:rootchinarenservice # wget http:/download.savannah.gnu.org/releases/libunwind/libunwind-0.99-alpha.tar.gzrootchinarenservice # tar zxvf libunwind-0.99-alpha.tar.gzrootchinarenservice # cd libunwi

7、nd-0.99-alpha/rootchinarenservice # CFLAGS=-fPIC ./configurerootchinarenservice # make CFLAGS=-fPICrootchinarenservice # make CFLAGS=-fPIC installrootchinarenservice # wget http:/google- # tar zxvf google-perftools-0.98.tar.gzrootchinarenservice # cd google-perftools-0.98/rootchinarenservice # ./con

8、figurerootchinarenservice # make & make installrootchinarenservice # echo /usr/local/lib /etc/ld.so.conf.d/usr_local_lib.confrootchinarenservice # ldconfigroot chinarenservice local# lsof -n | grep tcmallocnginx 7323 root mem REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0nginx 7324 www m

9、em REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0nginx 7325 www mem REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0nginx 7326 www mem REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0nginx 7327 www mem REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0nginx 73

10、28 www mem REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0nginx 7329 www mem REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0nginx 7330 www mem REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0nginx 7331 www mem REG 8,2 1412859 440730 /usr/local/lib/libtcmalloc.so.0.0.0

11、l Nginx 安装:rootChinarenservice oracle# tar -zxvf nginx-0.6.32.tar.gzrootChinarenservice oracle# cd nginx-0.6.32rootChinarenservice nginx-0.6.32# ./configure -prefix=/usr/local/nginx -with-http_ssl_module -with-pcre=/root/pcre-7.7 -with-zlib=/root/zlib-1.2.3 -with-http_stub_status_module -with-http_r

12、ealip_module -with-http_addition_module -with-http_sub_module -with-http_dav_module -with-http_flv_module -with-openssl=/root/openssl-0.9.8g -with-google_perftools_modulerootChinarenservice nginx-0.6.32# makerootChinarenservice nginx-0.6.32# make install./configure -with-http_ssl_module -with-pcre=.

13、/pcre-7.8 -with-zlib=./zlib-1.2.3 -with-http_stub_status_module -with-openssl=./openssl-0.9.8g3、 配置:rootChinarenservice oracle# cat /usr/local/nginx/conf/nginx.confuser nobody nobody;worker_processes 30;error_log logs/error.log notice;pid logs/nginx.pid;events use epoll; worker_connections 40960;http include mime.types;default_type

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业/管理/HR > 营销创新

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号