美文网首页
nginx安装

nginx安装

作者: crMiao | 来源:发表于2022-06-21 18:02 被阅读0次

    ======安装Nginx
    下载下面4个包

    wget http://nginx.org/download/nginx-1.10.2.tar.gz
    wget http://zlib.net/zlib-1.2.11.tar.gz
    wget https://jaist.dl.sourceforge.net/project/pcre/pcre/8.44/pcre-8.44.tar.gz
    

    手动下载nginx-rtmp-module放在/usr/local/rtmp/nginx-rtmp-module

    安装perl

    yum install perl
    

    安装gcc c++

    yum install -y gcc gcc-c++
    

    安装openssl

    yum -y install openssl openssl-devel
    
    cd ..
    tar -zxvf zlib-1.2.11.tar.gz
    cd zlib-1.2.11
    ./configure 
    make
    make install
    
    cd ..
    tar -zxvf pcre-8.40.tar.gz
    cd pcre-8.40
    ./configure 
    make
    make install
    
    cd ..
    tar -zxvf nginx-1.10.2.tar.gz 
    cd nginx-1.10.2
    ./configure --prefix=/usr/local/nginx --add-module=/usr/local/rtmp/nginx-rtmp-module --with-http_stub_status_module --with-http_ssl_module
    make
    make install
    

    相关文章

      网友评论

          本文标题:nginx安装

          本文链接:https://www.haomeiwen.com/subject/rfuevrtx.html