zoukankan      html  css  js  c++  java
  • CentOS7下安装ngnix


    yum -y install gcc automake autoconf libtool make

    yum -y install gcc gcc-c++


    cd /usr/local/src
    wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz

    tar -zxvf openssl-1.1.1b.tar.gz

    cd openssl-1.1.1b
    ./config && make && make install

    cd /usr/local/src
    wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz

    tar -zxvf pcre-8.40.tar.gz

    cd pcre-8.40
    ./configure && make && make install

    cd /usr/local/src
    wget http://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


    cd /usr/local/src
    wget http://nginx.org/download/nginx-1.18.0.tar.gz

    tar -zxvf nginx-1.18.0.tar.gz

    cd nginx-1.18.0
    ./configure && make && make install


    whereis nginx

    cd /usr/local/nginx/sbin
    ./nginx -v


    /usr/local/nginx/sbin/nginx

    ps -ef|grep nginx

    firewall-cmd --state

    systemctl stop firewalld.service

  • 相关阅读:
    jquery operate
    ujs
    图标站
    rails foreign key
    feedback product from uservoice
    秒杀网
    short url
    rails nil blank
    paperclip imagemagic api &paperclip relevent
    类似优米网
  • 原文地址:https://www.cnblogs.com/bhldc/p/14784265.html
Copyright © 2011-2022 走看看