简介
整理几个windows系统上Nginx常用的操作命令,便于查阅

windows常用命令
列出nginx实列
tasklist /fi “imagename eq nginx.exe”
校验 nginx.conf
nginx -t 或 nginx -tc /etc/nginx/nginx.conf
快速停止
nginx -s stop
正常关闭
nginx -s quit
更改配置、使用新配置启动新工作进程、正常关闭旧工作进程
nginx -s reload
重新打开日志文件
nginx -s reopen
查看占用端口
netstat -ano
#或
netstat -aon|findstr 80
关闭某任务
tskill









![vultr波兰华沙机房怎么样?vultr波兰华沙机房简单测评分享[2023年]](https://img.ivpsr.com/wp-content/uploads/2021/05/1619837326-5d518828ff221e1.jpg)