解决方法:检查nginx启动用户,ps -aux|grep nginx,如果为root用户,此时可能nginx.conf未设置user为root,不过不想用root用户启动则需要检查用户是否有该文件权限,或者给abc用户设置该文件权限:chmod 755 abc ,我是直接用root启动nginx,解决授权问题。
转载于:https://my.oschina.net/githubhty/blog/1632342
解决方法:检查nginx启动用户,ps -aux|grep nginx,如果为root用户,此时可能nginx.conf未设置user为root,不过不想用root用户启动则需要检查用户是否有该文件权限,或者给abc用户设置该文件权限:chmod 755 abc ,我是直接用root启动nginx,解决授权问题。
转载于:https://my.oschina.net/githubhty/blog/1632342