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

  • 相关阅读:
    表的创建与管理
    以传值和传引用的方式传递参数 IN OUT NOCOPY
    PLSQL中的三种参数模式IN、OUT、IN OUT
    用python写GPU上的并行计算程序,有什么库或者编译器?
    cupy中tensor数据类型与numpy以及pytorch中相互转换
    c++ string split
    Java 读取大文件
    Linux 使用系列
    安装以太坊环境
    服务器排查问题相关命令
  • 原文地址:https://www.cnblogs.com/lbnnbs/p/15774705.html
Copyright © 2011-2022 走看看