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.
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
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 -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.