Nginx learning Notes (1): installation and configuration of nginx

Source: Internet
Author: User
Tags nginx server
: This article mainly introduces Nginx study notes (1): nginx installation and configuration. if you are interested in the PHP Tutorial, refer to it. I. nginx introduction

Nginx is a web server that can reverse proxy HTTP, HTTPS, SMTP, POP3, IMAP protocol links, as well as a load balancer and HTTP cache. What is reverse proxy? The reverse proxy is actually a proxy server responsible for forwarding. it seems to request data from it. In fact, it only forwards requests to the real server and obtains data from the real server. The server returns the data to nginx and then nginx returns the data.
We can submit static files to nginx for processing. Nginx is used as a static server in many places, so that static files such as CSS, JS, and html can be cached.

II. install and start nginx (windows)

1. download the nginx installation package from the official website.
2. decompress the downloaded installation package and place the extracted files to any directory on the disk, such as D :/.
3. win + R enter cmd start command prompt, enter nginx installation directory, such as: D: \ nginx-1.9.9 \ nginx-1.9.9

4. enter the command start nginx to start the nginx server. Open your browser, enter localhost in the address bar, and press Enter. if the screen appears, nginx is successfully installed and started.

III. some simple nginx commands

Nginx-s stop nginx
Nginx-s reload: reload nginx
Nginx-s quit Launches nginx

The above describes how to install, start, and run nginx in windows. we will continue to learn more about nginx in the future. If any error occurs in this article, please correct it. thank you !!!

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above introduces the Nginx study notes (1): nginx installation and configuration, including some content, hope to be helpful to friends who are interested in PHP tutorials.

    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.