【Nginx异常】[error] 4236#29900: OpenEvent(“Global\ngx_reload_27128“) failed (5: Access is denied)
程序员文章站
2022-03-08 13:17:33
本文目录一、异常信息二、异常原因三、解决方案一、异常信息nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (5: Access is denied)2020/07/11 14:17:58 [notice] 4236#29900: signal process started2020/07/11 14:17:58 [error] 4236#29900: OpenEvent...
本文目录
一、异常信息
nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (5: Access is denied)
2020/07/11 14:17:58 [notice] 4236#29900: signal process started
2020/07/11 14:17:58 [error] 4236#29900: OpenEvent("Global\ngx_reload_27128") failed (5: Access is denied)
二、异常原因
从异常的信息中可以看到是访问被拒绝,脑海当中第一反应是权限不足,然后使用管理员运行cmd窗口,再次使用nginx命令,即可打开nginx服务。
三、解决方案
使用管理员权限打开,具体参考下图:
完结!
以下内容不用看,就是报错信息!
nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (5: Access is denied)
2020/07/11 14:17:58 [notice] 4236#29900: signal process started
2020/07/11 14:17:58 [error] 4236#29900: OpenEvent("Global\ngx_reload_27128") failed (5: Access is denied)
本文地址:https://blog.csdn.net/weixin_44299027/article/details/107284307