centos 6.8 安装 nginx1.7.4

    xiaoxiao2021-03-25  71

    好记性 ,不如烂笔头

    1.去官网下载安装包。

    2.解压到/usr/local/nginx-1.7.4

    3.cd nginx-1.7.4

    ./configure   (默认安装到/usr/local/nginx)

    make 

    make install

    注:遇到问题

    ./configure: error: C compiler cc is not found

    解决方法:

    yum -y install gcc gcc-c++ autoconf automake make  

    中途遇到各种缺少包 直接下载就好了

    4.配置nginx.conf(从其他服务器复制一个)

    5.配置成服务

    6.愉快的用 就可以了

    转载请注明原文地址: https://ju.6miu.com/read-39600.html

    最新回复(0)