nginx 在windows中的安装和配置

引用:nginx for 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;


4.相关命令

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

posted @ 2019-12-13 08:36  半湖思絮  阅读(144)  评论(0编辑  收藏  举报