One-Click Installation Script for Nginx on CentOS

Publish: 2018-04-27 | Modify: 2018-04-27

Requirements

  • CentOS 6/7

Installation

Yes, copy the command below and follow the prompts to operate.

wget https://raw.githubusercontent.com/helloxz/nginx-cdn/master/nginx.sh && bash nginx.sh

Module Description

Although LNMP and OneInstack can also install Nginx separately, I don't use them because some modules are missing and still need to be recompiled. This script has built-in commonly used modules for reverse proxy. For example:

Module Description

  • ngx_http_substitutions_filter_module: Keyword replacement module
  • ngx_cache_purge: Cache clearance module

Other Instructions

Refer to the following self-built CDN tutorial for better results:

Script source code: https://github.com/helloxz/nginx-cdn


Comments