1.使用到环境 nginx

链接:https://pan.baidu.com/s/150WmX4PgemCHwKR2d6sOdA
提取码:j3gu 

2.首先打开vue项目根目录;cmd命令行运行 npm run build 会自动生成一个dist文件夹 

3.把dist文件夹里面所有文件复制到  F:\nginx-1.19.2\nginx-1.19.2\html  (这是我本地文件,复制到html文件夹下)

4.运行nginx  【 start nginx 】

5.http://localhost/   访问地址  具体端口是在nginx 的 nginx.conf 文件配置的

6.https://www.cnblogs.com/dawnzhao/p/13858005.html

7.vue项目搭建  https://www.cnblogs.com/dawnzhao/p/13964276.html 

相关文章:

  • 2021-09-19
  • 2021-04-25
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案