Installation and configuration of Nginx under Windows
Source: Internet
Author: User
Nginx ("Engine X") is a high-performance, lightweight HTTP WEB server and a reverse proxy server and an e-mail imap/pop3/smtp proxy server.
Nginx was developed by the Russian program designer Igor Sysoev and developed for the second rambler.ru site in Russia, which has been running for more than four years at the site, and Igor publishes the source code in the form of a BSD-like license.
Since the Nginx release for four years, Nginx has been known for its stability, rich feature sets, sample configuration files, and low system resource consumption. Nginx surpasses Apache's high performance and stability, making it more and more Web sites that use Nginx as a Web server in China.
At present, the major domestic portal sites have been deployed Nginx, such as Sina, NetEase, Tencent, etc., newly discovered Nginx technology in the domestic increasingly hot, more and more sites began to apply the deployment of Nginx.
First, go to the official website to download nginx version of Windows, official website download: http://nginx.org/download/(to select the zip version)
After downloading to the package, unzip the Nginx-nginx1.0.11.zip package to your favorite root directory and change the directory name to Nginx.
Then, do the following:
CD nginx//switch to the folder where Nginx resides
Start Nginx
In this way, the Nginx service is started. Open Task Manager, view the Nginx.exe process, there are two processes will show, occupy system resources, that is quite small. Then open the browser, input HTTP://127.0.0.1/will be able to see the Nginx Welcome page, Very friendly
Note: If the login http://127.0.0.1/fails, there may be other Web servers already occupied (such as IIS, Appache, etc.). At this point, please open the nginx.conf file under nginx\conf and change listen 80 to another port, such as Listen 28000. Then start Nginx again, and take http://127.0.0.1:28000/. If successful, it will enter the Nginx Welcome screen (This screen corresponds to the index.html page under nginx\html).
Second, the next is to configure the Nginx conf file. Here's my configuration:
#user nobody;
Worker_processes 1;
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.