0
点赞
收藏
分享

微信扫一扫

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

Nginx服务:信用盘程序搭建电报TG<:duoteJG>

2022双赢win138安装依赖包
安装:
# yum -y install build-essential
安装:更多依赖包
# yum -y install gcc automake autoconf libtool make
安装:g++
# yum -y install gcc gcc-c++
安装Nginx

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

cd /usr/local/src

wget

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
安装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

tar -zxvf zlib-1.2.11.tar.gz

cd zlib-1.2.11

./configure

make && make install


举报

相关推荐

0 条评论