zoukankan      html  css  js  c++  java
  • openresty安装

    cd /usr/local/
    mkdir data
    cd data
    wget http://openresty.org/download/openresty-1.9.15.1.tar.gz

    cd /usr/local/data/ cd openresty-1.9.15.1/bundle/LuaJIT-2.1-20160517/ make clean make clean && make && make install cd /usr/local/data/openresty-1.9.15.1/bundle/ wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.tar.gz tar -zxvf 2.3 wget http://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.tar.gz tar -zxvf 2.3.1 wget https://github.com/yaoweibin/nginx_upstream_check_module/archive/v0.3.0.tar.gz tar -zxvf v0.3.0 ./configure --prefix=/usr/local/openresty --with-http_realip_module --with-pcre --with-luajit --add-module=./bundle/ngx_cache_purge-2.3/ --add-module=./bundle/nginx_upstream_check_module-0.3.0/ -j2 make & make install cd /usr/local/openrestry/
    ./sbin/nginx

    配置参数:

    --with***                安装一些内置/集成的模块

    --with-http_realip_module  取用户真实ip模块

    -with-pcre                Perl兼容的达式模块

    --with-luajit              集成luajit模块

     

    --add-module           添加自定义的第三方模块,如此次的ngx_che_purge

    --prefix       指定安装路径

    安装模块说明:

    openresty-1.9.15.1/bundle目录里存放着nginx核心和很多第三方模块,比如有我们需要的Lua和LuaJIT。

    安装LuaJIT

    下载ngx_cache_purge模块,该模块用于清理nginx缓存

    下载nginx_upstream_check_module模块,该模块用于ustream健康检查

  • 相关阅读:
    正则化--L1正则化(稀疏性正则化)
    机器学习分类算法之随机森林
    机器学习分类算法之逻辑回归
    机器学习分类算法之朴素贝叶斯
    机器学习分类算法之K近邻(K-Nearest Neighbor)
    机器学习之特征工程
    uwsgi支持http长链接
    机器学习之数据预处理
    机器学习之场景解析
    机器学习之基本概念
  • 原文地址:https://www.cnblogs.com/sagech/p/5612056.html
Copyright © 2011-2022 走看看