假设在bin目录(有nginx.exe程序的目录)下:

-c 指定文件

启动:start nginx.exe -c .\conf\nginx-osc.conf

重启:nginx.exe -s reload -c .\conf\nginx-osc.conf

关闭:nginx.exe -s stop -c .\conf\nginx-osc.conf

关闭需要根据使用的配置文件去关闭,如果不写默认用nginx.conf去关闭, 但如果启动运行使用的配置文件不是默认的那么用默认的配置文件去关闭就会报错。