Windows version nginx installation, startup, access

1. Download nginx

nginx download address
Insert picture description here

Download and unzip the package

2 configure nginx

Create an html page, test use
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>nginx测试</title>
</head>
<body>
    这是Nginx测试页面
</body>
</html>
Open nginx.conf and modify the configuration

Insert picture description hereInsert picture description here
Pay attention here. For the newly created file, the path you copied is \ must be changed to / or there will be a problem.
If you don’t change it, you have to read another blog: Faithfully yours, nginx. Start nginx access error

3. Start the test

Enter in the root directory of the nginx file: cmd
Insert picture description here
start: start nginx
Insert picture description here

It has been started.
There are 2 services in the service, which are normal. If there are more, an error will be reported. You have to read another blog: Faithfully yours, nginx. Start nginx to access the error.
Insert picture description here
Browser access: http://localhost/ nginx.html
Insert picture description here
successfully started!!!
Here is just the start of nginx.
Welcome big guys to leave comments and learn together!!! Thanks!!!

===========================
Original article, reprinted with the source!

Guess you like

Origin blog.csdn.net/dayonglove2018/article/details/106869836