今天安裝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