MAC上安装好nginx后报403解决方案

我的环境上php我安装nginx使用的brew

在nginx.conf开头加

user root;

报错 nginx: [emerg] getgrnam("root") failed in xxx:1

然后又重新加 user root root;

还是报错nginx: [emerg] getgrnam("root") failed in /usr/local/nginx/conf/nginx.conf:1

最终解决方案

user root owner;

然后重启 sudo nginx -s reload


猜你喜欢

转载自blog.csdn.net/wen_3370/article/details/80316714