Nginx服务:信用盘程序搭建q<115.28.8.00.9.9>
安装依赖包
,,,安装:
,,,# yum - y安装建设重要
,,,安装:更多依赖包
,,,# yum - y安装gcc automake autoconf libtool
,,,安装:g++
,,,# yum - y安装gcc gcc-c + +
安装PCRE库
选定源码目录==比;ftp下载PCRE库==比;安装PCRE库
# cd/usr/local/src
# wget ftp://ftp.pcre.org/pub/pcre/pcre-8.42.tar.gz
#焦油-zxvf pcre-8.42.tar.gz
# cd/pcre - 8.42
# ./configure
#做,,制作安装
安装zlib源码包
下载zlib源码包==比;安装zlib包
# cd/usr/local/src
# wget http://zlib.net/zlib-1.2.11.tar.gz
#焦油-zxvf zlib-1.2.11.tar.gz
# cd zlib-1.2.11
# ./configure
#做,,制作安装
安装openssl源码包
# cd/usr/local/src
# wget https://www.openssl.org/source/openssl-1.1.0k.tar.gz
#焦油-zxvf openssl-1.1.0k.tar.gz
# cd。
/openssl-1.1.0k
# ./configure
#做,,制作安装
安装Nginx
# cd/usr/local/src
# wget http://nginx.org/download/nginx-1.16.1.tar.gz
#焦油-zxvf nginx-1.16.1.tar.gz
# cd nginx-1.16.1
# groupadd - r nginx
# useradd - r - g nginx nginx
# ./configure \
——prefix=/usr/地方/nginx \
——sbin-path=/usr/地方/nginx/sbin/nginx \
——conf-path=/usr/地方/nginx/nginx。参看\
——pid-path=/usr/地方/nginx/nginx。pid \
用户=nginx \
——=nginx \
——组
——with-http_ssl_module \
——with-http_flv_module \
——with-http_mp4_module \
——with-http_stub_status_module \
——with-http_gzip_static_module \
——http-client-body-temp-path=/var/tmp/nginx/客户/\
——http-proxy-temp-path=/var/tmp/nginx/代理/\
——http-fastcgi-temp-path=/var/tmp/nginx/fcgi/\
——http-uwsgi-temp-path=/var/tmp/nginx/uwsgi \
——http-scgi-temp-path=/var/tmp/nginx/scgi \
——with-pcre=/usr/地方/src/pcre - 8.42 \
——with-zlib=/usr/地方/src/zlib-1.2.11 \
- openssl=/usr/地方/src/openssl-1.1.0k \
[注:当前所在目录一定要是/usr/地方/src/nginx-1.16.1
——with-pcre=/usr/地方/src/pcre - 8.41指的是pcre - 8.42的源码路径。
——with-zlib=/usr/地方/src/zlib-1.2.11指的是zlib-1.2.11的源码路径。
——使用openssl=/usr/地方/src/openssl-1.1.0g指的是openssl-1.1.0k的源码路径。)
#做,,使安装