1. Download nginx
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
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
start: start nginx
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.
Browser access: http://localhost/ nginx.html
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!