多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# CentOS7环境安装 ## 源码编译安装 ## 一键脚本安装 ## 二进制安装 ## 自定义打包 # Debian8环境安装 ## apt-get 安装 ``` apt-get update apt-get install nginx dpkg -S nginx ``` ## 源码编译安装 ``` apt-get update useradd www -s /sbin/nologin -M -u 888 apt-get install --force-yes -y gcc g++ libpcre3 libpcre3-dev openssl libssl-dev libpcrecpp0 zlib1g-dev libperl-dev build-essential mkdir -p /data/tools cd /data/tools wget http://nginx.org/download/nginx-1.6.3.tar.gz tar -zxf nginx-1.6.3.tar.gz cd nginx-1.6.3 ./configure --user=www --group=www --prefix=/usr/local/nginx \ --with-http_stub_status_module \ --with-http_ssl_module \ --with-http_flv_module \ --with-http_realip_module make && make install egrep -v "#|^$" /usr/local/nginx/conf/nginx.conf.default > /usr/local/nginx/conf/nginx.conf ``` ## 一键脚本安装 ## 二进制安装 ## 自定义打包 ### 提示缺少pcre包 apt-get install libpcre3 libpcre3-dev