前端-后端集群部署线上Linux 云服务器

一.后端接口地址 api.datadogapache.cn     
          腾讯云机器:1.117.173.54
二.前端接口地址 web.datadogapache.cn
          腾讯云机器:1.117.173.54
三.前端部署nginx上
          后端部署多个节点,同过nginx反向代理做集群
四.spring boot后端项目打包生成target文件
mvn install -Dmaven.test.skip=true

 

 

 

 五.启动应用指定外部文件

nohup java -jar -Dspring.config.location=./application.properties online_xdclass-0.0.1-
SNAPSHOT.jar &

六.查看nohup.out

tail -f nohup.out

七.前端项目打包(本地vue项目进行打包)

cnpm run build

八.上传dist目录到Centos系统某个目录(可通过fileZilla工具上传)

 

 

 

posted @ 2021-07-01 11:00  Allen-LuoYi  阅读(192)  评论(0)    收藏  举报