当前位置:网站首页>部署jar包
部署jar包
2022-04-23 10:24:00 【---清心寡欲---】
部署 XXX.jar 包到3333端口上
1)首先进入要部署的路径
cd /data/java/
2)查找是否有正在进行的进程
方法一:ps -ef|grep XXX.jar
找到不是--color的的进程,root后面就是进程号
这种方法会出现,如果在一台服务器上部署了相同包名,不同端口的时候,就无法区分,所以建议使用方式二
方法二:netstat -tnlp|grep :3333
3)kill进程
kill -9 进程号
eg.
kill -9 9127
4)部署jar包
nohup java -jar XXX.jar & 回车
可查看部署日志
tail -f nohup.out
注:打包文件也可以指定对应的环境部署
eg.指定dev环境部署
nohup java -jar XXX.jar --spring.profiles.active=dev &
这样就部署完成了
版权声明
本文为[---清心寡欲---]所创,转载请带上原文链接,感谢
https://blog.csdn.net/ying456baby/article/details/121865727
边栏推荐
猜你喜欢
Zhengda international explains what the Dow Jones industrial index is?
Net start MySQL MySQL service is starting MySQL service failed to start. The service did not report any errors.
2022年制冷与空调设备运行操作考试练习题及模拟考试
mysql同一个表中相同数据怎么合并
Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022
【省选联考 2022 D2T1】卡牌(状态压缩 DP,FWT卷积)
MapReduce core and foundation demo
2022 mobile crane driver test question bank simulation test platform operation
JVM——》常用命令
Solution architect's small bag - 5 types of architecture diagrams
随机推荐
一文读懂PlatoFarm新经济模型以及生态进展
Go language practice mode - functional options pattern
Sim Api User Guide(4)
Question bank and answers of Shanghai safety officer C certificate examination in 2022
art-template 模板引擎
微信小程序中app.js文件、组件、api
得到知识服务app原型设计比较与实践
707、设计链表(链表)
通过流式数据集成实现数据价值(3)- 实时持续数据收集
《Redis设计与实现》
第二章 In-Memory 体系结构 (IM-2.2)
Realize data value through streaming data integration (1)
基于PyQt5实现弹出任务进度条功能示例
Realizing data value through streaming data integration (5) - flow analysis
Ansible cloud computing automation
Chapter 3 enable and adjust the size of IM column storage (im-3.1)
正大国际讲解道琼斯工业指数到底是什么?
Redis design and Implementation
第一章 Oracle Database In-Memory 相关概念(IM-1.1)
DBA常用SQL语句 (5) - Latch 相关