1. Select the source directory
Selected Directory/usr/local/
cd/usr/local/
2. Installing the Pcre Library
cd/usr/local/
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21.tar.gz
TAR-ZXVF pcre2-10.21.tar.gz
CD pcre2-10.21
sudo./configure
sudo make
sudo make install
3. Installing the Zlib Library
cd/usr/local/
wget http://zlib.net/zlib-1.2.8.tar.gz
TAR-ZXVF zlib-1.2.8.tar.gz CD zlib-1.2.8
sudo./configure
sudo make
sudo make install
4. Install SSL
cd/usr/local/
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
TAR-ZXVF openssl-1.0.1c.tar.gz
sudo./config
sudo make
sudo make install
5. Installing Nginx
Nginx generally has two versions, the stable version and the development version, you can choose one of these two versions according to your purpose, below is the detailed steps of installing nginx into the/usr/local/nginx directory:
cd/usr/local/
wget http://nginx.org/download/nginx-1.2.8.tar.gz
TAR-ZXVF nginx-1.2.8.tar.gz
CD nginx-1.2.8
sudo./configure–prefix=/usr/local/nginx
sudo make
sudo make install
–with-pcre=/usr/src/pcre-8.21 refers to the pcre-8.21 source path.
–with-zlib=/usr/src/zlib-1.2.7 refers to the zlib-1.2.7 source path.
6. Start
Make sure that the 80 port of the system is not occupied by other programs.
/usr/local/nginx/sbin/nginx
Check whether the startup was successful:
NETSTAT-ANO|GREP 80 Results Input Description started successfully
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Ubuntu Proxy Server Nginx installation, including the content of Ubuntu, I hope the PHP tutorial interested in a friend helpful.