Hello,好久不见,最近真的变得懒了,码博客的机会也少了.有人可能问我原因?因为忙着找对象啊!!!nginx: [error] OpenEvent(“Global\ngx_reload_5744“) failed (2: The system cannot find the file specif_# Nginx

一.问题回顾

最近,我们小组开发了售卡的管理后台,需要在windows配置下nginx代理.看似非常简单,我擦,竟然报错了.我们先把报错信息抓过来看看

nginx: [error] OpenEvent("Global\ngx_reload_5744") failed (2: The system cannot find the file specified)

左看右看,也猜不透哪里的问题导致报错,网上搜了一下,都说是nginx没有启动,什么鬼?

二.问题探究

我们知道,平时在linux下启动nginx,常用命令nginx -s reload,可是今天我用这个命令在windows下启动nginx,竟然报错了!
于是,我采用另一种方式,首先使用命令:nginx -s quit,关闭nginx,在使用命令:start nginx来启动nginx,发现没有了刚才的报错.

三.问题总结

猜想可能是启动命令nginx -s reload没有重载到配置文件信息,导致nginx 启动报错吧,可以尝试先关闭,再启动的方式启动nginx

nginx: [error] OpenEvent(“Global\ngx_reload_5744“) failed (2: The system cannot find the file specif_nginx_02