一、Vue项目打包命令 npm run build 打包后的文件存放至nginx目录中的html文件夹内 二、Nginx设置 在conf文件夹中找到nginx.conf文件 nginx.conf文件中修改要修改以下2处内容 启动 cmd 运行,第一条报错是因为电脑本身80端口被占用