mac安装nginx

今天安装nignx转悠了一大圈,因为host的问题;

1 brew info nignx

2 brew intall nignx

结果localhost访问403,结果查问题:

1  nginx.conf 中 user root 的问题

2 ROOT目录 chmod -R 777 的问题

3 甚至是 root 启动还是www 启动的问题

4 原来是/etc/hosts的问题

 

顺便是了解下 https://www.cnblogs.com/rendd/p/5928733.html

posted @ 2018-11-23 16:55  墨子涵  阅读(109)  评论(0编辑  收藏  举报