Home > Article > Backend Development > Installation and configuration of Nginx under Windows
Nginx installation and configuration under Windows
Nginx ("engine x") is a high-performance, lightweight HTTP Web server and reverse proxy server and email IMAP /POP3/SMTP Proxy server.
Nginx was developed by Russian programmer Igor Sysoev for the Rambler.ru site, the second most visited site in Russia. It has been running on the site for more than four years. Igor converted the source code to something like Released under the BSD license.
In the four years since Nginx was released, Nginx has become famous for its stability, rich feature set, sample configuration files and low system resource consumption. Nginx surpasses Apache in terms of high performance and stability, making domestic use of Nginx as There are also more and more websites on web servers.
Currently, major domestic portal websites have deployed Nginx, such as Sina, NetEase, Tencent, etc. It has recently been discovered that Nginx technology is becoming increasingly popular in China, and more and more websites have begun to apply and deploy Nginx.
1. First, go to the official website to download the Windows version of nginx1.0.11. Download from the official website: http://nginx.org/download/nginx-1.0.11.zip
After downloading the software package, unzip nginx-nginx1.0.11 .zip package to your favorite root directory and change the directory name to nginx.
Then, perform the following operations:
cd nginx
start nginx
In this way, the nginx service is started. Open the task manager and check the nginx.exe process. Two processes will be displayed and occupy system resources, which is quite small. Then open the browser and enter http://127.0.0.1/ to see the nginx welcome page, which is very friendly
nginx -s stop // Stop nginx
nginx -s reload // Reload the configuration file
nginx -s quit // Exit nginx
The above introduces the installation and configuration of Nginx under Windows, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.