当前位置:网站首页>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
边栏推荐
- JUC concurrent programming 07 -- is fair lock really fair (source code analysis)
- LeetCode-608. 树节点
- SSH利用私钥无密钥连接服务器踩坑实录
- Sim Api User Guide(5)
- Using idea to develop Spark Program
- 基于PyQt5实现弹出任务进度条功能示例
- Introduction to wechat applet, development history, advantages of applet, application account, development tools, initial knowledge of wxml file and wxss file
- 一文看懂 LSTM(Long Short-Term Memory)
- Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022
- Juc并发编程06——深入剖析队列同步器AQS源码
猜你喜欢

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

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

SSH uses private key to connect to server without key

Operation of 2022 tea artist (primary) test question simulation test platform

Sim Api User Guide(6)

Zhengda international explains what the Dow Jones industrial index is?
Detailed explanation of MapReduce calculation process

Sim Api User Guide(4)

【无标题】

Wonderful review | deepnova x iceberg meetup online "building a real-time data Lake based on iceberg"
随机推荐
Can Jerry's AES 256bit [chapter]
利用多线程按顺序连续输出abc10次
Six practices of Windows operating system security attack and defense
Windows installs redis and sets the redis service to start automatically
Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP
2022 mobile crane driver test question bank simulation test platform operation
101. Symmetric Tree
JUC concurrent programming 09 -- source code analysis of condition implementation
Juc并发编程07——公平锁真的公平吗(源码剖析)
206、反转链表(链表)
Solve the problem of installing VMware after uninstalling
Jerry's factors that usually affect CPU performance test results are: [article]
Jinglianwen technology - professional data annotation company and intelligent data annotation platform
JUC concurrent programming 06 -- in-depth analysis of AQS source code of queue synchronizer
Linked list intersection (linked list)
二叉树的构建和遍历
Ansible cloud computing automation
1、两数之和(哈希表)
Chapter 3 enable and adjust the size of IM column storage (im-3.1)
24. Exchange the nodes in the linked list (linked list)