`

mac 下安装nginx

    博客分类:
  • mac
 
阅读更多
1.grew install nginx

2. 在终端运行 nginx

3.发现8080端口被占用

4. cd /usr/local/homebrew/etc/nginx/servers

5. 修改 nginx.conf  改端口为80

6.sudo nginx

7.nginx 可执行命令在   /usr/local/homebrew/bin/

8. 打开localhost:80可以看到nginx 欢迎界面

9.停止nginx 用 kill -9 进程号。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics