咏竹莉
where there is a will,there is a way

1. 想本地启动打包后的文件,需要本地安装nginx

具体安装步骤百度,本机已安装
安装步骤:[https://www.cnblogs.com/tandaxia/p/8810648.html](https://www.cnblogs.com/tandaxia/p/8810648.html)

 

2. 打开本地nginx路径,命令:

open /usr/local/Cellar/nginx 

 

如图:

 

 

3. 找到本地配置文件nginx.conf: 

 

 

4. 配置好后, 启动nginx

sudo nginx -s reload

 

 注: 启动后无报错,直接打开localhost 端口号,即可,不用重复启,否则会报端口占用

posted on 2021-07-08 10:29  咏竹莉  阅读(141)  评论(0)    收藏  举报