Mac下安装Nginx服务器相当简单 $ brew install nginx 启动: $ brew services start nginx $ 测试,打开浏览器 http://localhost:8080