nginx 常用操作命令:
nginx -t : 检查配置文件是否正确 (nginx.exe 目录下 执行 nginx -t -c conf/nginx.conf)
nginx -s reload : 修改配置后重新加载生效 (nginx.exe 目录下 执行 nginx -s reload)
nginx -s stop : 快速停止nginx
nginx -s quit : 有序停止nginx
nginx -c /path/nginx.conf : 启动nginx (nginx.exe 目录下 执行 nginx -c conf/nginx.conf)
start nginx : 启动nginx (nginx.exe 目录下 执行 start nginx)
快速切换nginx(不同的.conf)
nginx-mysql.bat:
taskkill /im nginx.exe /f
nginx.exe -c .\conf\nginx_mysql.conf