当前位置:网站首页>部署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
边栏推荐
猜你喜欢

得到知识服务app原型设计比较与实践

一文看懂 LSTM(Long Short-Term Memory)

Sim Api User Guide(6)

0704、ansible----01

JUC concurrent programming 07 -- is fair lock really fair (source code analysis)

Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022

2022年上海市安全员C证考试题库及答案

中职网络安全2022国赛之CVE-2019-0708漏洞利用

2022年流动式起重机司机考试题库模拟考试平台操作

Configuration of LNMP
随机推荐
Juc并发编程09——Condition实现源码分析
Ansible playbook syntax and format automate cloud computing
转:毛姆:阅读是一座随身携带的避难所
142. Circular linked list||
0704、ansible----01
19. Delete the penultimate node of the linked list (linked list)
142、环形链表||
Realizing data value through streaming data integration (5) - flow analysis
JVM——》常用命令
第120章 SQL函数 ROUND
Operation of 2022 tea artist (primary) test question simulation test platform
Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP
707. Design linked list (linked list)
What are the system events of Jerry's [chapter]
Can Jerry's AES 256bit [chapter]
24. Exchange the nodes in the linked list (linked list)
Define linked list (linked list)
JUC concurrent programming 09 -- source code analysis of condition implementation
MapReduce core and foundation demo
SQL tuning series - SQL performance methodology