最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

Windows修改nginx.conf配置文件然后重新加载报错

业界 admin 3浏览 0评论
nginx: [error] OpenEvent(“Global\ngx_reload_5744”) failed (2: The system cannot find the file specif

今天配置Windows的nginx的时候在命令行使用nginx -s reload出现上述报错信息,原来是因为修改了本地的nginx.conf文件之后没有停止nginx进程,于是重新使用命令

nginx -s quit

先停止本地的nginx进程
然后再次启动

start nginx 

最后再次使用

nginx -s reload

重新加载配置信息就可以了

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

今天配置Windows的nginx的时候在命令行使用nginx -s reload出现上述报错信息,原来是因为修改了本地的nginx.conf文件之后没有停止nginx进程,于是重新使用命令

nginx -s quit

先停止本地的nginx进程
然后再次启动

start nginx 

最后再次使用

nginx -s reload

重新加载配置信息就可以了

发布评论

评论列表 (0)

  1. 暂无评论