============= 项目_发布部署 ============= 1 后端部署 IDEA Maven barblog 生命周期 package双击 -> /barblog/target/barblog-1.0.0.jar 命令行 > cd ...\barblog\target > java -jar barblog-1.0.0.jar 2 前端部署 IDEA 终端 > cnpm run build -> /barblog-vue/dist |复制 v ...\nginx\html ...\nginx\conf\nginx.conf: http { ... server { ... listen 8080; server_name localhost; ... location / { root html/dist; index index.html index.htm; try_files $uri $uri/ /index.html; } ... } ... } 命令行 > cd ...\nginx > start nginx 浏览器 localhost:8080 命令行 > nginx -s stop - 关闭 > nginx -s quit - 优雅关闭 > nginx -s reload - 重启