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 进程号。
mac 下安装nginx
猜你喜欢
转载自xixiyanqi.iteye.com/blog/2240554
今日推荐
周排行