nginx部署前端dist包详细图文教程
下载地址
https://nginx.org/en/download.html
download Stable version 可选择稳定版的nginx
nginx压缩包解压后的目录
1.将打包好的dist放入html目录下
2.打开nginx.conf配置文件
修改地址
location / { root html/dist; index index.html index.htm;}
1.双击启动nginx
2.打开浏览器输入地址打开项目 http://localhost:8083/
nginx部署前端dist包详细图文教程