Install Nginx server

Source: Internet
Author: User
: This article describes how to install the Nginx server. if you are interested in the PHP Tutorial, refer to it. Install Nginx server

For Nginx server installation, I will introduce two methods here.

1. download the installation package for installation

1) installation package: http://nginx.org/en/download.html select linux version for download

Click here to download the latest installation package nginx-1.9.12.tar.gz.

2) before installing Nginx, install Nginx on your own.

(Ps: My Virtual Machine was fully configured at the time, so I don't know what I need. if I need a virtual machine configuration, I can trust it)
3) decompress the nginx source code 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 whether the installation is successful


Start Nginx


Verify that Nginx is successfully started


II. install Ubuntu Online

1) Download and install the SDK online

sudo apt-get install nginx
2) verify the installation effect

4th items in the same category


The above introduces the installation of the Nginx server, including some content, and hope to be helpful to friends who are interested in the PHP Tutorial.

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.