Ubuntu Proxy Server nginx install ubuntu15.04 linux ubuntu 16.04

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.