nginx使用过程中的一些坑 下载使用brew download nginx就行 在启动nginx时,不要sudo nginx,使用sudo nginx -s reload,不然会遇到80端口被nginx本身占用 在conf配置中,如果网页显示403,把user nobody改为user root owner; conf配置中,对于不正确和不需要的location全部删除,因为不管有没有用,都会被读取 conf配置端口时,尽量避开80端口和81端口