The Nginx version used here comes from the latest OpenResty.
nginx.conf:
server { listen 8000; server_name chenzx alias chenzx.localhost; location / { root f:/; autoindex on; #index index.html index.htm; } }
Can’t find a solution online (is Nginx born for Linux systems?)
C:\ngx_openresty-1.9.7.1-win32>nginx.exe
Start nginx directly from the command line and cannot end it with Ctrl+Z/C ~~~ Pitfall
nginx seems to need to be started with start nginx under windows, and then you can run nginx -s stopend the process
The above introduces the inability to use Nginx as an http file server under Windows (permission issue?), including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.