欢迎光临
我们一直在努力

Linux下信用盘程序搭建PHP+Nginx环境搭建

Nginx服务:信用盘程序搭建q<115.28.8.00.9.9>

安装依赖包

    安装:

    # yum -y install build-essential

    安装:更多依赖包

    # yum -y install gcc automake autoconf libtool make

    安装:g++

    # yum -y install gcc gcc-c++

安装PCRE库

选定源码目录 ==> ftp下载PCRE库 ==> 安装PCRE库

# cd /usr/local/src

# wget ftp://ftp.pcre.org/pub/pcre/pcre-8.42.tar.gz

# tar -zxvf pcre-8.42.tar.gz

# cd /pcre-8.42

# ./configure

# make && make install

安装zlib源码包

下载zlib源码包 ==> 安装zlib包

# cd /usr/local/src

# wget http://zlib.net/zlib-1.2.11.tar.gz

# tar -zxvf zlib-1.2.11.tar.gz

# cd zlib-1.2.11

# ./configure

# make && make install

安装openssl源码包

# cd /usr/local/src

# wget https://www.openssl.org/source/openssl-1.1.0k.tar.gz

# tar -zxvf openssl-1.1.0k.tar.gz

# cd ./openssl-1.1.0k

# ./configure

# make && make install

安装Nginx

# cd /usr/local/src

# wget http://nginx.org/download/nginx-1.16.1.tar.gz

# tar -zxvf nginx-1.16.1.tar.gz

# cd nginx-1.16.1

# groupadd -r nginx

# useradd -r -g nginx nginx

# ./configure \

–prefix=/usr/local/nginx \

–sbin-path=/usr/local/nginx/sbin/nginx \

–conf-path=/usr/local/nginx/nginx.conf \

–pid-path=/usr/local/nginx/nginx.pid \

–user=nginx \

–group=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/client/ \

–http-proxy-temp-path=/var/tmp/nginx/proxy/ \

–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/local/src/pcre-8.42 \

–with-zlib=/usr/local/src/zlib-1.2.11 \

–with-openssl=/usr/local/src/openssl-1.1.0k \

[注:当前所在目录一定要是/usr/local/src/nginx-1.16.1

–with-pcre=/usr/local/src/pcre-8.41 指的是pcre-8.42 的源码路径。

–with-zlib=/usr/local/src/zlib-1.2.11 指的是zlib-1.2.11 的源码路径。

–with-openssl=/usr/local/src/openssl-1.1.0g 指的是openssl-1.1.0k 的源码路径。]

# make && make install

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。