The process of installing and configuring nginx in win10

The process of installing and configuring nginx in win10

1. Introduction

Nginx is a free, open source, high-performance HTTP server and reverse proxy server, which also provides IMAP/POP3/SMTP services. Nginx can perform operations such as reverse proxy, load balancing, HTTP server (dynamic and static separation), and forward proxy. Because I have used Nginx in my company recently, here is a brief record of how I configured and used Nginx on a Win10 64-bit system.

2. Installation and Use

1. Download from the official website

Attached URL: http://nginx.org/en/download.html

2. Choose a directory to decompress it. After decompression, it will look like this:

3. In the current directory (D:\Path\Nginx-1.16.1\nginx-1.16.1), open the command window and execute start nginx.exe or directly execute nginx.exe to start Nginx

You can see in the task manager that nginx has started

4. Verify that Nginx is started successfully on the browser (enter: localhost:80 on the browser)

When you see this welcome interface, it means that Nginx has been installed successfully and can be used normally (Nginx uses port 80 by default)

5. Some common Nginx commands: (.exe suffix can be removed)

Shut down Nginx (quickly stop nginx, may not save relevant information): nginx.exe -s stop

Shut down Nginx (stop nginx in a complete and orderly manner and save relevant information): nginx.exe -s quit

Reload Nginx: nginx.exe -s reload

View the Nginx process: tasklist /fi "imagename eq nginx.exe"

6.Supplement:

6.1 The Nginx configuration file is nginx.conf:

6.2 The default startup webpage of Nginx is index.html (in the html folder, which can be configured and modified through the Nginx configuration file nginx.conf)

The above is the detailed content of the process of installing and configuring nginx in win10. For more information about installing and configuring nginx in win10, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Install and configure IIS + MySQL + nginx + php7.1.7 under Win10
  • How to install nginx on win10
  • How to install Nginx in Docker
  • How to install Nginx in a specified location in Centos system
  • Nginx installation error solution
  • How to install php7 + nginx environment under centos6.6
  • Nginx installation detailed tutorial
  • How to install PHP7.4 and Nginx on Centos
  • Detailed tutorial for installing nginx on centos8 (picture and text)
  • Detailed explanation of nginx installation, deployment and usage on Linux
  • Correct steps to install Nginx in Linux

<<:  How to implement form validation in Vue

>>:  Detailed explanation of MySQL 8.0 password expiration policy

Recommend

Implementation of socket options in Linux network programming

Socket option function Function: Methods used to ...

How to use tcpdump to capture packets in Linux system

Let me look at the example code first: 1. Common ...

Packetdrill's concise user guide

1. Packetdrill compilation and installation Sourc...

Detailed explanation of the use of default in MySQL

NULL and NOT NULL modifiers, DEFAULT modifier, AU...

How to run Python script on Docker

First create a specific project directory for you...

Vue imitates ElementUI's form example code

Implementation requirements The form imitating El...

How to underline the a tag and change the color before and after clicking

Copy code The code is as follows: a:link { font-s...

mysql having usage analysis

Usage of having The having clause allows us to fi...

Add ico mirror code to html (favicon.ico is placed in the root directory)

Code: Copy code The code is as follows: <!DOCTY...

Specific usage of CSS compound selectors

Intersection Selector The intersection selector i...

HTML Tutorial: Ordered Lists

<br />Original text: http://andymao.com/andy...

Service management of source package installation under Linux

Table of contents 1. Startup management of source...

Implementation of CSS loading effect Pac-Man

emmm the name is just a random guess 2333 Preface...

Util module in node.js tutorial example detailed explanation

Table of contents Starting from type judgment Str...