部署项目常用命令

1、IDEA打包SpringBoot项目

2、打包Vue项目

终端输入 npm run build:prod --report

3、查看端口并杀死进程

#查看正在占用8080端口的进程
netstat -ano|findstr 8080

#杀死占用端口的进程,5609为进程号
taskkill /pid 5609 /f

4、运行jar包命令

java -jar xxxx.jar

5、部署Vue项目需要把dist文件整个复制

原文地址:https://www.cnblogs.com/liuyu666/p/13731016.html