Nginx deploys static web server

First of all, you must operate nginx.conf to operate nginx, because we need to modify the data in nginx and conf, so we have to copy nginx.conf to the desktop (or any other place), and then modify it.
Insert picture description here
First find the conf folder and execute sz nginx.confthe files to the location you want to pass
and then
Insert picture description here
replicate at a location below the first location
corresponding linux directory like this
Insert picture description here
and then upload the edited overwrite the original file that

rf -y

Just copy your static web to the ace directory
and then visit it.
Insert picture description here
Friendly reminder: 192.168.192.131 in this place is not the same for everyone, it is the address under your xshell.

Guess you like

Origin blog.csdn.net/qq_42678668/article/details/108558501
Recommended