nginx启动报错:The system cannot find the path specified
nginx: [emerg] CreateDirectory() "E:\...xxx\nginx-1.21.4/temp/client_body_temp" failed (3: The system cannot find the path specified)报错端口不冲突路径无中文时的解决方法
·
假期过来开工突然发现nginx没法启动,cmd里输入start nginx后任务管理器里一直没有nginx,重启了一下无果,后在error.log里看到报错信息为:
nginx: [emerg] CreateDirectory() "E:\wechatDowmload\WeChat\Files\wxid_nicnxnwgocbj21\FileStorage\File\2022-01\nginx-1.21.4/temp/client_body_temp" failed (3: The system cannot find the path specified)
查了半天基本都说是端口号冲突/路径有中文字符,但明显我的原因都不是(端口号后端那边特意设置的10086,这谁会去重复!),最后找到了这条:
按照报错信息里的路径在nginx的文件夹下新建temp文件夹 -> 新建client_body_temp文件夹,启动nginx,解决问题。
但还不知道为什么会突然有这个问题,之前的nginx文件夹里也没有temp这个文件夹,仍然能正常启动。
后续发现:启动nginx后新建的temp文件夹消失了:
已知client_body_temp是用户缓存的目录配置, 主要用于控制用户上传,所以是超过了指定大小client_max_body_size,但它又无法自动创建temp文件夹?那为啥不能自动创建咧,没有权限?
更多推荐
已为社区贡献1条内容
所有评论(0)