1. Download Nginx, address: http://nginx.org/en/download.html
2. Modify Nginx configuration, nginx.conf
location /commonFiles { alias E:\commonFiles; }3. Start Nginx
Command line: start nginx
Double click: nginx.exe
4. Access pictures: http://127.0.0.1/commonFiles/abc.png
Attachment: related commands
sudo nginx #open nginx nginx -s reload|reopen|stop|quit #Reload configuration|restart|stop|exit nginx nginx -t #Test configuration for syntax errors nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]
-?,-h : open help information -v : show version info and exit -V : display version and configuration options information, then exit -t : Check the configuration file for syntax errors and exit -q : suppress non-error messages during configuration file checking -s signal : Send a signal to an nginx master process: stop (stop), quit (exit), reopen (restart), reload (reload configuration files) -p prefix : set prefix path (default: /usr/local/Cellar/nginx/1.2.6/) -c filename : set configuration file (default: /usr/local/etc/nginx/nginx.conf) -g directives : set global directives outside the configuration file