今天安装nignx转悠了一大圈,由于host的问题;html
1 brew info nignxnginx
2 brew intall nignxhtm
结果localhost访问403,结果查问题:blog
1 nginx.conf 中 user root 的问题hosts
2 ROOT目录 chmod -R 777 的问题co
3 甚至是 root 启动仍是www 启动的问题nignx
4 原来是/etc/hosts的问题ps
顺即是了解下 https://www.cnblogs.com/rendd/p/5928733.htmllocalhost