nginx 在windows中的安装和配置
1.下载解压
cd c:\ unzip nginx-1.13.2.zip cd nginx-1.13.2 start nginx
2.查看运行状态
C:\nginx-1.13.2>tasklist /fi "imagename eq nginx.exe" Image Name PID Session Name Session# Mem Usage =============== ======== ============== ========== ============ nginx.exe 652 Console 0 2 780 K nginx.exe 1332 Console 0 3 112 K
3.查看日志
access_log logs/site.log; root C:/web/html;
start nginx
nginx -s stop fast shutdown
nginx -s quit graceful shutdown
nginx -s reload changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
nginx -s reopen re-opening log files