Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Installing NGINX on Windows
Home
NGINX
Installing NGINX on Windows
asked
Sep 5, 2019
in
NGINX
by
Robin
Installing NGINX on Windows
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 5, 2019
by
john ganales
Installing NGINX on Windows
Nginx comes with pre-compiled binaries for windows which make it extremely easy to get started. If it did not come pre-compiled, we would need to have a compiler installed on our computer with a full environment. Fortunately, this is not the case.
To download the latest version of Nginx for Windows, use the following link:
https://nginx.org/en/download.html
Once the downloading is done, we can extract it from any of our folders. Here, I am using the c:\nginx-1.17.0 directory.
Important locations:
Confis in -> c:\nginx-1.17.0\conf\
Default config -> c:\ nginx-1.17.0\conf\nginx.conf
Logs will be in -> c:\ nginx-1.17.0\logs
Default webroot is -> c:\ nginx-1.17.0\html\
Default listen address -> http://localhost
Verify Nginx Windows Installation
To make sure that the Nginx is working properly, or installed successfully, open the command prompt on windows and then type the following, make sure that you update the environment path if you have installed in another folder.
C:\nginx\nginx.exe
Installing NGINX on Windows
We should be able to go to http://localhost, and we should see the "Welcome to Nginx" default page. If we see that page, then we can be sure that Nginx has been installed properly.
Installing NGINX on Windows
To operate for nginx, use the following command:
Command
Description
nginx -s stop
fast shutdown
nginx -s quit
graceful shutdown
nginx -s reload
changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
nginx -s reopen
reopening log files
...