最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

运维笔记admin22浏览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

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

发布评论

评论列表(0)

  1. 暂无评论