命令:
1.启动:
start nginx
2.查看进程
到nigx 根目录下执行
tasklist /fi "imagename eq nginx.exe"
如我:
日志位置(以我的为例):D:\nginx-1.14.0\logs
一个是主进程,一个是工作进程
4.nginx/Windows runs as a standard console application (not a service), and it can be managed using the following commands:
控制台应用程序(不是服务),可以使用命令行操作
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 重新打开日志文件 |