nginx命令

start nginx

nginx.exe –s quit 

nginx –s reload

nginx -h # 打开帮助
nginx -t # 检查配置文件是否正确
# 以下命令均要先启动nginx才能执行
nginx -s stop # 停止
nginx -s quit # 退出
nginx -s reopen # 重新启动(注意不会重新读取配置文件)
nginx -s reload # 重新读取配置文件


原文地址:https://www.cnblogs.com/liucuiqiang/p/12849644.html