zoukankan      html  css  js  c++  java
  • tengine 安装和配置

    安装:

    cd /usr/local/src

    wget http://tengine.taobao.org/download/tengine-2.3.3.tar.gz

    tar -xzf tengine-2.3.3.tar.gz

    cd tengine-2.3.3.tar.gz

    ./configure

    make

    make install

    nginx -V #查看版本和编译时参数

    nginx -m #查看已安装的模块

    nginx -t #检查配置文件

    systemctl enable nginx

    systemctl start nginx

    tengine 的配置语法与nginx完全兼容,可直接使用

    开启 ngx_http_upstream_check_module 模块

    Tengine-1.4.0 版本之前,编译时以指定依赖库的方式开启:./configure --with-http_upstream_check_module

    Tengine-1.4.0 到 2.3.0 版本默认开启

    Tengine-2.3.1 版本之后,编译时以增加第三方模块的方式添加:./configure --add-module=./modules/ngx_http_upstream_check_module/

    增加第三方模块的方法:

    比如增加 modules/ngx_http_upstream_check_module 和 ngx_http_upstream_consistent_hash_module 模块

    ./configure \
    --add-module=./modules/ngx_http_upstream_check_module/ \
    --add-module=./modules/ngx_http_upstream_consistent_hash_module

    所有可增加的模块都在源码包的 modules 目录,可视自己需要加载

    增加ssl模块,防止使用certbot时报错:The error was: PluginError('Nginx build is missing SSL module (--with-http_ssl_module).')

    ./configure \
    --add-module=./modules/ngx_http_upstream_check_module/ \
    --add-module=./modules/ngx_http_upstream_consistent_hash_module \
    --with-http_ssl_module

  • 相关阅读:
    sublime text 2安装及使用
    C陷阱与缺陷之语法陷阱
    上门洗车APP --- Androidclient开发 之 项目结构介绍
    编写语法分析程序
    TCP header
    boost事件处理
    TP-LINK无线路由器WR340G+ 54M支持WDS
    300M无线路由器 TL-WR842N
    python 2.7 支持dict comprehension
    100M 宽带办理
  • 原文地址:https://www.cnblogs.com/lbnnbs/p/15774705.html
Copyright © 2011-2022 走看看