🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 一、源码包安装方式 安装make编译环境 ~~~ yum install -y gcc gcc-c++ ~~~ 安装pre依赖 ~~~ yum install pcre* yum install pcre-devel ~~~ 可参考博客 [https://www.cnblogs.com/taiyonghai/p/6728707.html](https://www.cnblogs.com/taiyonghai/p/6728707.html) 下载安装包 ~~~ wget http://nginx.org/download/nginx-1.10.2.tar.gz wget http://www.openssl.org/source/openssl-fips-2.0.10.tar.gz wget http://zlib.net/zlib-1.2.11.tar.gz wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.gz ~~~ 安装命令 ~~~ tar -zxvf openssl-fips-2.0.10.tar.gz cd openssl-fips-2.0.10/ ./config && make && make install tar zlib-1.2.11.tar.gz cd zlib-1.2.11/ ./configure && make && make install cd ../nginx-1.10.2 ./configure --prefix=/data/nginx/ --with-http_ssl_module make install ~~~ ## 二、yum命令安装(默认安装) ~~~ yum install nginx