Get the App
SLTechnology News&Howtos  ›  Servers  › 

Building PHP+Nginx Environment for Credit disk Program under Linux

Shulou Source: shulou.com Published: 2022-06-02 06:38:47 10月03日 Update

Nginx service: credit disk program building Q

Install dependency packages

Installation:

# yum-y install build-essential

Installation: more dependent packages

# yum-y install gcc automake autoconf libtool make

Installation: Gmail +

# yum-y install gcc gcc-c++

Install the PCRE library

Selected source directory = > ftp download PCRE library = > install PCRE library

# 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

Install the zlib source package

Download the zlib source package = > install the zlib package

# 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

Install the openssl source package

# 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

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\

[note: the current directory must be / usr/local/src/nginx-1.16.1

-- with-pcre=/usr/local/src/pcre-8.41 refers to the source path of pcre-8.42.

-- with-zlib=/usr/local/src/zlib-1.2.11 refers to the source path of zlib-1.2.11.

-- with-openssl=/usr/local/src/openssl-1.1.0g refers to the source path of openssl-1.1.0k.]

# make & & make install

Tags: Source code path directory credit program location more if service environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux Shulou Technology MariaDB Microsoft