当前位置:网站首页>部署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
边栏推荐
- DBA common SQL statements (3) - cache, undo, index and wait events
- 利用多线程按顺序连续输出abc10次
- 1. Sum of two numbers (hash table)
- ARM调试(1):两种在keil中实现printf重定向到串口的方法
- CSP certification 202203-2 travel plan (multiple solutions)
- Turn: Maugham: reading is a portable refuge
- mysql同一个表中相同数据怎么合并
- 19、删除链表的倒数第N个节点(链表)
- ansible playbook语法和格式 自动化云计算
- Arm debugging (1): two methods to redirect printf to serial port in keil
猜你喜欢

2022 mobile crane driver test question bank simulation test platform operation

Yarn resource scheduler

Six practices of Windows operating system security attack and defense

2022年上海市安全员C证考试题库及答案
![Jerry's more accurate determination of abnormal address [chapter]](/img/ed/a08949bfc63823baf25fd57c324996.png)
Jerry's more accurate determination of abnormal address [chapter]

101. Symmetric Tree

基于PyQt5实现弹出任务进度条功能示例

解决方案架构师的小锦囊 - 架构图的 5 种类型

JVM——》常用命令

Yarn core parameter configuration
随机推荐
通过流式数据集成实现数据价值(5)- 流分析
Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP
349、两个数组的交集
Common SQL statements of DBA (6) - daily management
Sim Api User Guide(8)
SQL tuning series - Introduction to SQL tuning
DBA common SQL statements (1) - overview information
19. Delete the penultimate node of the linked list (linked list)
[untitled]
2022年制冷与空调设备运行操作考试练习题及模拟考试
转:毛姆:阅读是一座随身携带的避难所
Juc并发编程09——Condition实现源码分析
SQL调优系列文章之—SQL调优简介
Sim Api User Guide(6)
微信小程序简介、发展史、小程序的优点、申请账号、开发工具、初识wxml文件和wxss文件
Shell script interaction free
Ansible cloud computing automation command line compact version
一文读懂PlatoFarm新经济模型以及生态进展
一文看懂 LSTM(Long Short-Term Memory)
Sim Api User Guide(5)