Code Monkey home page Code Monkey logo

nginx-cdn's Introduction

XCDN

CentOS一键安装Nginx

环境要求

  • CentOS 6/7

当前版本

  • nginx/1.18

已编译模块

  • --with-stream
  • --with-http_stub_status_module
  • --with-http_v2_module
  • --with-http_ssl_module
  • --with-http_gzip_static_module
  • --with-http_realip_module
  • --with-http_slice_module
  • --with-pcre-jit
  • pcre-8.39
  • zlib-1.2.11
  • openssl-1.1.1
  • ngx_http_substitutions_filter_module
  • ngx_cache_purge
  • ngx_brotli

安装

wget https://raw.githubusercontent.com/helloxz/nginx-cdn/master/nginx.sh && bash nginx.sh
  • 如果是CentOS 6的系统,请选择编译安装。
  • CentOS 7可选择编译安装或二进制安装。
  • 编译安装通常10分钟左右,二进制安装通常2分钟左右。

常用命令

安装完成后执行命令 source /etc/profile 让环境变量立即生效,或重新打开终端。

  • 启动nginx:nginx
  • 停止nginx:nginx -s stop
  • 重载nginx:nginx -s reload
  • 语法检测:nginx -t

联系我

nginx-cdn's People

Contributors

helloxz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.