当前位置:网站首页>部署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
边栏推荐
- 203. Remove linked list elements (linked list)
- 第二章 Oracle Database In-Memory 体系结构(上) (IM-2.1)
- 景联文科技—专业数据标注公司和智能数据标注平台
- JUC concurrent programming 06 -- in-depth analysis of AQS source code of queue synchronizer
- net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
- Can Jerry's AES 256bit [chapter]
- IDEA——》每次启动都会Indexing或 scanning files to index
- Understand the new economic model of platofarm and its ecological progress
- DBA常用SQL语句 (5) - Latch 相关
- 定义链表(链表)
猜你喜欢
随机推荐
242、有效字母异位词(哈希表)
209、长度最小的子数组(数组)
/etc/shadow可以破解吗?
Juc并发编程09——Condition实现源码分析
2022年流动式起重机司机考试题库模拟考试平台操作
第120章 SQL函数 ROUND
242. Valid Letter ectopic words (hash table)
Sim Api User Guide(8)
解决VMware卸载后再安装出现的问题
Juc并发编程06——深入剖析队列同步器AQS源码
JUC concurrent programming 07 -- is fair lock really fair (source code analysis)
链表相交(链表)
art-template 模板引擎
SQL tuning series - Introduction to SQL tuning
一文读懂PlatoFarm新经济模型以及生态进展
Sim Api User Guide(4)
Realizing data value through streaming data integration (5) - stream processing
203、移出链表元素(链表)
深度选择器
杰理之通常影响CPU性能测试结果的因素有:【篇】