windows:
- tasklist /fi “imagename eq nginx.exe”
列出nginx实列 - nginx -t 或 nginx -tc /etc/nginx/nginx.conf
校验 nginx.conf - 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
另外:
- netstat -ano 或 netstat -aon|findstr 80
查看占用端口 - tskill
关闭某任务