在 MAC 上用BREW 安装好NGINX 后,修改网站文件路径后出错。
默认 root html; 的真实路径为
/usr/local/Cellar/nginx/1.2.3/html
指向到:
/usr/local/var/www
文件夹所有权是 root wheel
修改 nginx.conf 的 user root wheel;
修改自定义网站代码所在目录的所有权为 chown -R root:wheel www;
然后就搞定了。
在 MAC 上用BREW 安装好NGINX 后,修改网站文件路径后出错。
默认 root html; 的真实路径为
/usr/local/Cellar/nginx/1.2.3/html
指向到:
/usr/local/var/www
文件夹所有权是 root wheel
修改 nginx.conf 的 user root wheel;
修改自定义网站代码所在目录的所有权为 chown -R root:wheel www;
然后就搞定了。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。