nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (2: No such file or directory)
启动至加个命令参数指定安装目录就好了
./nginx -p ./
解决Nginx启动错误:无法打开日志文件
本文讲述了如何修复Nginx启动时提示'could not open error log file'的问题,通过指定安装目录解决了路径问题。
nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (2: No such file or directory)
启动至加个命令参数指定安装目录就好了
./nginx -p ./

被折叠的 条评论
为什么被折叠?