记录解决办法 参考以下网址,成功关闭:nginx: [error] CreateFile() “D:\nginx-1.20.1/logs/nginx.pid“ failed (2: The system cannot find the_51CTO博客_nginx emerg createfile
nginx: [error] CreateFile() "D:\0930\nginx-1.18.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
解决办法:
在任务管理器强制关闭nginx进程
在此页面找到并关闭
然后再在命令行中重新用start nginx命令启动
就会发现在nginx安装目录下的logs文件中出现了nginx.pid文件
原本这里是没有的
再用命令nginx -s quit正常关闭nginx进程
最后访问:
成功关闭nginx