Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Building PHP+Nginx Environment for Credit disk Program under Linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report