zoukankan      html  css  js  c++  java
  • Linux 下面 nginx tar包安装 包含openssl,rewrite,stream,sticky 等模块 完整

    最近需要使用nginx 但是发现有时缺少一些模块. 所以 在学习如何增加上相应的模块. 主要学习的网站:

    沧海书生 Ansible爱好者 
    https://www.cnblogs.com/tssc/p/7481885.html
    等等

    安装过程:

    1. 下载必须的文件包: 

    -rw-r--r-- 1 root root 1034586 Sep 22 08:45 nginx-1.17.3.tar.gz
    -rw-r--r-- 1 root root  124138 Oct 17 08:34 nginx-sticky.zip
    -rw-r--r-- 1 root root 8213737 Sep 22 08:45 openssl-1.1.1b.tar.gz
    -rw-r--r-- 1 root root 2085854 Sep 22 08:45 pcre-8.43.tar.gz
    -rw-r--r-- 1 root root  607698 Sep 22 08:45 zlib-1.2.11.tar.gz

    首先 安装

    pcre
    openssl
    zlib

    方式解压缩 进入目录
    ./configure or /config
    然后执行 make && make install

    然后解压缩nginx 的安装文件并且执行配置

    注意最后面的 sticky 需要根据 解压缩的文件目录来处理. 

    ./configure --sbin-path=/usr/local/nginx/nginx 
    --conf-path=/usr/local/nginx/nginx.conf 
    --pid-path=/usr/local/nginx/nginx.pid 
    --with-http_ssl_module 
    --with-pcre=../pcre-8.43 
    --with-zlib=../zlib-1.2.11 
    --with-openssl=../openssl-1.1.1b 
    --with-stream 
    --add-module=/nginx-tar-sticky/nginx-sticky 

    然后执行 make & make install 即可. 

  • 相关阅读:
    Codeforces 691A Fashion in Berland
    HDU 5741 Helter Skelter
    HDU 5735 Born Slippy
    HDU 5739 Fantasia
    HDU 5738 Eureka
    HDU 5734 Acperience
    HDU 5742 It's All In The Mind
    POJ Euro Efficiency 1252
    AtCoder Beginner Contest 067 C
    AtCoder Beginner Contest 067 D
  • 原文地址:https://www.cnblogs.com/jinanxiaolaohu/p/11690287.html
Copyright © 2011-2022 走看看