Nginx study notes (1): nginx installation and configuration

WBOY
Release: 2016-07-29 09:01:37
Original
1173 people have browsed it

1. Introduction to nginx

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 a reverse proxy? A reverse proxy is actually a proxy server responsible for forwarding. It seems that data is requested from it, but in fact it just forwards the request to the real server and obtains data from the real server. The server returns the data to nginx, and then nginx returns it.
We can hand over static files to nginx for processing. nginx is used as a static server in many places, so that static files such as CSS, JS, html, etc. can be cached.

2. Installation and startup of nginx (windows)

1. First download the nginx installation package from the official website.
2. Unzip the downloaded installation package and place the unzipped files in any directory on the disk, such as D:/.
3. Win + R Enter cmd to start the command prompt and enter the nginx installation directory, such as: D:nginx-1.9.9nginx-1.9.9

Nginx study notes (1): nginx installation and configuration

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

Nginx study notes (1): nginx installation and configuration

3. Some simple nginx commands

nginx -s stop Stop nginx
nginx -s reload Reload nginx
nginx -s quit launch nginx

The above is the installation and startup of nginx under windows and a simple command introduction. Later, we will continue to learn and introduce other knowledge of nginx. Please correct me if there are any errors in this article, thank you! ! !

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!