zoukankan      html  css  js  c++  java
  • nginx +lua +redis 构建自动缓存系统

    一、 nginx环境搭建

    第一步
    下载 LuaJIT-2.0.4.tar.gz http://luajit.org/download/LuaJIT-2.0.4.tar.gz
    安装 make && make install

    第二步
    下载nginx依赖的模块:
    openssl-1.0.2e.tar.gz https://www.openssl.org/source/old/1.0.2/openssl-1.0.2g.tar.gz
    pcre-8.37.tar.gz http://exim.mirror.fr/pcre/pcre-8.37.tar.gz
    zlib-1.2.8.tar.gz http://zlib.net/zlib-1.2.8.tar.gz
    echo-nginx-module https://github.com/openresty/echo-nginx-module.git
    ngx_devel_kit https://github.com/simpl/ngx_devel_kit.git
    redis2-nginx-module https://github.com/openresty/redis2-nginx-module.git
    srcache-nginx-module https://github.com/openresty/srcache-nginx-module.git
    lua-nginx-module https://github.com/openresty/lua-nginx-module.git
    ngx_http_redis http://people.freebsd.org/~osa/ngx_http_redis-0.3.8.tar.gz
    set-misc-nginx-module https://github.com/openresty/set-misc-nginx-module.git
    解压到根目录


    第三步
    下载nginx-1.8.0
    进入目录
    安装
    ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=../pcre-8.37 --with-zlib=../zlib-1.2.8 --with-openssl=../openssl-1.0.2g --add-module=../echo-nginx-module --add-module=../ngx_devel_kit --add-module=../redis2-nginx-module --add-module=../srcache-nginx-module --add-module=../lua-nginx-module --add-module=../ngx_http_redis --add-module=../set-misc-nginx-module
    make && make install


    启动nginx
    /usr/local/nginx/sbin/nginx

  • 相关阅读:
    windows server2008自动登录
    WindosServer2008 激活问题。
    [转]10分钟写出你的第一个包含CRUD的Rails程序
    SQL 2008操作相关
    没有域环境安装SharePoint2010
    D3D10彻底抛弃了固定图形管线
    MultiUser01 – 简介
    6种Socket I/O 模型性能比较,图
    Dr程序耗尽了CPU
    IDXGIOutput接口
  • 原文地址:https://www.cnblogs.com/isfish/p/5497366.html
Copyright © 2011-2022 走看看