我要评分
获取效率
正确性
完整性
易理解

Installing Nginx

  • On CentOS 7.6/openEuler 20.03:

    Nginx 1.17.8 is supported. For details about how to install and deploy Nginx, see Nginx Porting Guide.

  1. Download the Nginx 1.17.8 package and decompress it.
    1
    2
    3
    cd /home/
    wget https://github.com/nginx/nginx/archive/release-1.17.8.tar.gz --no-check-certificate
    tar -zxvf release-1.17.8.tar.gz
    
  2. Go to the Nginx source code directory.
    1
    cd  /home/nginx-release-1.17.8
    
  3. Configure Nginx.
    1
    ./auto/configure --prefix=/usr/local/nginx --with-http_ssl_module
    
  4. Compile and install Nginx.
    1
    make -j60 && make install
    
  • On CentOS 8.1:

    Nginx 1.14.2 is supported. For details about how to install, deploy, and use Nginx, see Nginx Porting Guide.

    When compiling and installing Nginx, if an error message is displayed stating "Inaccessible plugin file /usr/local/lib/gcc/aarch64-unknown-linux-gnu/8.5.0/plugin/annobin.so", rectify the fault by following instructions in annobin.so File Missing When Compiling Nginx.