download http://nginx.org/en/download.html Unzip Unzip the downloaded The directory structure after decompression is as follows:
Configuration Find the The modified content is as follows: worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name localhost; location / { root D:/mycodes/movable-termination; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root D:/mycodes/movable-termination ; } } } Notice 1. 2. 3 The start up First enter the nginx directory:
Start nginx in the command prompt:
After startup, you can see two nginx processes in the task manager Reload after modifying the configuration to take effect:
Orderly exit
Fast closing
Multiple nginx processes may be started due to multiple nginx starts. In this case, you need to list the information related to these processes:
If you need to kill all these processes, you can use the following command:
Note: tasklist, taskkill, and start are all native Windows commands, not provided by nginx. This is the end of this article about the download, installation and detailed use of nginx server. For more relevant nginx server download content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Do you know how to use mock in vue project?
1. Command Introduction The contab (cron table) c...
Below, we introduce three ways to draw heart shap...
Preface When testing, in order to test the projec...
Nginx (engine x) is a high-performance HTTP and r...
1. Add a new user Only allow local IP access crea...
Preface If you frequently access many different r...
This article uses examples to describe MySQL pess...
Table of contents Preface optimization Extract va...
<br />Navigation design is one of the main t...
Common methods for limiting input 1. To cancel the...
Use the for loop to import the zabbix image into ...
Today I will share with you a breathing carousel ...
Preface Js is the most commonly used code manipul...
Docker officially recommends that we use port map...
1. Download the accelerated version of msyql dock...