Installation of Nginx server

Source: Internet
Author: User
installation of Nginx server

Nginx Server installation, I am here to mainly introduce two ways.

First, download the installation package form the installation

1) Download address of the installation package: http://nginx.org/en/download.html Select the Linux version to download

In the present, the latest installation package version for nginx-1.9.12.tar.gz can be downloaded by clicking on it.

2) Before installing Nginx, depend on other conditions, please self-installation, here no more detailed introduction.

(PS: My virtual machine is fully configured at the time, so I don't know what I need if I need a virtual machine configuration to private messages)
3) Unzip the source of Nginx and install

# TAR-ZXVF Nginx-1.3.16.tar.gz-c/usr/local/src/# cd/usr/local/src/nginx-1.3.16/#./configure \--conf-path=/etc/ nginx/nginx.conf \--error-log-path=/var/log/nginx/error.log \--http-log-path=/var/log/nginx/access.log \-- Pid-path=/var/run/nginx/nginx.pid \--lock-path=/var/lock/nginx.lock \--user=nginx \--group=nginx \--with-http_ssl_ Module \--with-http_flv_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/\--with-pcre# make && make install# mkdir-p/var/tmp/nginx/client
4) Verify the installation effect

Check if the installation is successful


Start Nginx


Verify that Nginx is successfully started


Second, Ubuntu online installation

1) Download and install online

sudo apt-get install Nginx
2) Verify the installation effect

The same as the first category, item 4th


The above describes the installation of Nginx server, including the aspects of the content, I hope that 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.