美文网首页
Centos x64 Nginx-1.14.2 install

Centos x64 Nginx-1.14.2 install

作者: 师娘哪里去了 | 来源:发表于2019-10-16 16:17 被阅读0次
    #下载安装包
    cd /opt
    wget http://nginx.org/download/nginx-1.14.2.tar.gz -c
    #安装依赖
    yum -y install pcre-devel gcc gcc-c++ autoconf automake make  zlib-devel
    #编译
    ./configure --prefix=/usr/local/nginx-1.14.2
    ......
    ......
    make
    make install
    #做个软链
    ln -s /usr/local/nginx-1.14.2/sbin/nginx  /usr/sbin/
    #启动nginx
    nginx
    

    相关文章

      网友评论

          本文标题:Centos x64 Nginx-1.14.2 install

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