• linux-nginx-1.18.0版本详细安装模块


    yum -y install pcre-devel pcre gcc gcc-c++ openssl openssl-devel zlib-devel libxml2 libxml2-dev libxslt-devel gd-devel GeoIP GeoIP-devel GeoIP-data
    1
    cd /opt/nginx
    
    gzip模块需要 zlib 库
    http://www.zlib.net/fossils/
    wget https://zlib.net/zlib-1.2.11.tar.gz
    tar zxvf zlib-1.2.11.tar.gz
    cd zlib-1.2.11
    ./configure
    make
    make install
    
    
    rewrite模块需要 pcre 库
    https://ftp.pcre.org/pub/pcre/
    wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
    tar zxvf pcre-8.43.tar.gz
    cd pcre-8.43
    ./configure
    make
    make install
    
    
    ssl 功能需要openssl库
    https://www.openssl.org/source/
    wget https://www.openssl.org/source/openssl-1.0.2s.tar.gz
    tar zxvf openssl-1.0.2s.tar.gz
    cd openssl-1.0.2s
    ./config
    make
    make install
    
    wget http://nginx.org/download/nginx-1.18.0.tar.gz
    tar zxvf nginx-1.18.0.tar.gz
    cd nginx-1.18.0
    
    ##--prefix=/opt/nginx-1.18.0 自定义编译位置
    
    ./configure --prefix=/opt/nginx-1.18.0 
    --with-select_module 
    --with-poll_module 
    --with-threads 
    --with-file-aio 
    --with-http_ssl_module 
    --with-http_v2_module 
    --with-http_realip_module 
    --with-http_addition_module 
    --with-http_xslt_module 
    --with-http_xslt_module=dynamic 
    --with-http_image_filter_module 
    --with-http_image_filter_module=dynamic 
    --with-http_geoip_module 
    --with-http_geoip_module=dynamic 
    --with-http_sub_module 
    --with-http_dav_module 
    --with-http_flv_module 
    --with-http_mp4_module 
    --with-http_gunzip_module 
    --with-http_gzip_static_module 
    --with-http_auth_request_module 
    --with-http_random_index_module 
    --with-http_secure_link_module 
    --with-http_degradation_module 
    --with-http_slice_module 
    --with-http_stub_status_module 
    --with-stream 
    --with-stream=dynamic 
    --with-stream_ssl_module 
    --with-stream_realip_module 
    --with-stream_geoip_module 
    --with-stream_geoip_module=dynamic 
    --with-stream_ssl_preread_module 
    --with-compat 
    --with-pcre 
    --with-pcre=/opt/nginx/pcre-8.43 
    --with-zlib=/opt/nginx/zlib-1.2.11 
    --with-openssl=/opt/nginx/openssl-1.0.2s 
    
    
    make
    make install
    
    cd /opt
    
    tar -czvf nginx-1.18.0.tar.gz nginx-1.18.0/
    
    cd  /opt/nginx-1.18.0/sbin
    
    ./nginx -c conf/nginx.conf
    
    ./nginx -s stop
    ————————————————
    版权声明:本文为CSDN博主「飞鱼丶灬」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/m0_37859032/article/details/111319398
    

      

  • 相关阅读:
    尚未为数据源“RptDataSet_StatEC”提供数据源实例
    C3P0的详细配置说明(com.mchange.v2.c3p0.comboPooledDataSource)
    TopCoder SRM 581
    [ZJOI2012]灾难
    Codeforces 313
    [ZJOI2010]数字计数
    [ZJOI2010]排列计数
    [ZJOI2009]函数
    [ZJOI2009]假期的宿舍
    [ZJOI2008]骑士
  • 原文地址:https://www.cnblogs.com/hanjiali/p/14865717.html
Copyright © 2020-2023  润新知