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

  • 相关阅读:
    51keil编译器printf函数
    asp.net里登陆记住密码
    Asp.net GridView分页
    DataTable拆分分页
    ASP.NET MVC 窗体身份验证及角色权限治理示例
    asp.net获取IP地址
    Asp.net Ajax框架教程
    将页面的ViewState放在Session
    20个Jquery表单插件
    前端下载图片的N种方法
  • 原文地址:https://www.cnblogs.com/lbnnbs/p/15774705.html
Copyright © 2011-2022 走看看