无论是 nginx -s stop
还是 nginx -s reload
命令,都会出现这个错误。
CreateFile() "D:\Applications\Scoop\persist\nginx/logs/nginx.pid" failed (2: The system cannot find the file specified)
解决:使用命令创建 logs/nginx.pid
文件
nginx -c conf/nginx.conf
无论是 nginx -s stop
还是 nginx -s reload
命令,都会出现这个错误。
CreateFile() "D:\Applications\Scoop\persist\nginx/logs/nginx.pid" failed (2: The system cannot find the file specified)
解决:使用命令创建 logs/nginx.pid
文件
nginx -c conf/nginx.conf