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. Problem Multiple floating elements cannot expa...
Table of contents background Provide / Inject Ext...
MySQL 8.0: MVCC for Large Objects in InnoDB In th...
There is a question that has troubled web designe...
1. What is floating? Floating, as the name sugges...
Preface Merging or splitting by specified charact...
1.1. Download: Download the zip package from the ...
<br /> CSS syntax for table borders The spec...
Table of contents Preface 1.1 Function 1.2 How to...
Table of contents Preface 1. Introduction to Axio...
Table of contents Preface How to solve Sudoku Fil...
Method 1: Use Google advanced search, for example...
This article example shares the specific code of ...
Table of contents Preface Rendering setTable comp...
Today, when I was practicing with the Baidu page,...