多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ### 安装环境 `centos 7 64bit` ### 安装编译工具及库文件 `yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel` ### 安装 PCRE PCRE 作用是让 Nginx 支持 Rewrite 功能。 **下载 PCRE 安装包:**[地址](https://sourceforge.net/projects/pcre/files/pcre/) `wget https://jaist.dl.sourceforge.net/project/pcre/pcre/8.44/pcre-8.44.tar.gz` **安装** ``` cd /usr/local tar zxvf pcre-8.44.tar.gz cd pcre-8.44 ./configure make && make install ``` **查看pcre版本** ``` pcre-config --version ``` ### 安装 Nginx ``` wget https://nginx.org/download/nginx-1.17.9.tar.gz cd nginx-1.17.9 ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/pcre-8.44 make make install ``` **查看nginx版本** ``` /usr/local/nginx/sbin/nginx -v ``` **创建软链接** ``` ln -s /usr/local/nginx/sbin/nginx /usr/local/sbin/ ```