当前位置:网站首页>Deploy jar package
Deploy jar package
2022-04-23 10:29:00 【---Pure heart and few desires---】
Deploy XXX.jar Package to 3333 On port
1) First enter the path to deploy
cd /data/java/
2) Find out if there are any ongoing processes
Method 1 :ps -ef|grep XXX.jar
Find not --color Process of ,root Then there is the process number
This method will appear , If the same package name is deployed on a server , When different ports , You can't distinguish , Therefore, it is suggested to use mode 2
Method 2 :netstat -tnlp|grep :3333
3)kill process
kill -9 Process number
eg.
kill -9 9127
4) Deploy jar package
nohup java -jar XXX.jar & enter
You can view the deployment log
tail -f nohup.out
notes : The package file can also specify the corresponding environment deployment
eg. Appoint dev The deployment environment
nohup java -jar XXX.jar --spring.profiles.active=dev &
This completes the deployment
版权声明
本文为[---Pure heart and few desires---]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231024447019.html
边栏推荐
- Understand the new economic model of platofarm and its ecological progress
- Jerry's users how to handle events in the simplest way [chapter]
- Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022
- 1、两数之和(哈希表)
- SQL tuning series - Introduction to SQL tuning
- 通过流式数据集成实现数据价值(5)- 流分析
- 解决方案架构师的小锦囊 - 架构图的 5 种类型
- Zhengda international explains what the Dow Jones industrial index is?
- CSP认证 202203-2 出行计划(多种解法)
- 解决VMware卸载后再安装出现的问题
猜你喜欢
101. Symmetric Tree
101. Symmetric Tree
2022 mobile crane driver test question bank simulation test platform operation
JUC concurrent programming 07 -- is fair lock really fair (source code analysis)
JVM——》常用参数
基于PyQt5实现弹出任务进度条功能示例
Swagger2 接口如何导入Postman
Read LSTM (long short term memory)
SSH利用私钥无密钥连接服务器踩坑实录
Juc并发编程09——Condition实现源码分析
随机推荐
What are the system events of Jerry's [chapter]
Yarn core parameter configuration
Redis design and Implementation
242. Valid Letter ectopic words (hash table)
MySql常用语句
Arbitrary file reading vulnerability exploitation Guide
Sim Api User Guide(5)
Sim Api User Guide(5)
142. Circular linked list||
微信小程序简介、发展史、小程序的优点、申请账号、开发工具、初识wxml文件和wxss文件
域名和IP地址的联系
Realizing data value through streaming data integration (5) - stream processing
【leetcode】199.二叉树的右视图
Arm debugging (1): two methods to redirect printf to serial port in keil
通过流式数据集成实现数据价值(5)- 流分析
图像处理——噪声小记
Linked list intersection (linked list)
206、反转链表(链表)
LeetCode-608. Tree node
SQL tuning series - Introduction to SQL tuning