当前位置:网站首页>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
边栏推荐
- Yarn core parameter configuration
- Turn: Maugham: reading is a portable refuge
- ansible playbook语法和格式 自动化云计算
- Sim Api User Guide(4)
- Realize data value through streaming data integration (1)
- DBA常用SQL语句 (5) - Latch 相关
- 转:毛姆:阅读是一座随身携带的避难所
- Chapter 1 Oracle database in memory related concepts (im-1.1)
- 一文看懂 LSTM(Long Short-Term Memory)
- SQL tuning series - SQL performance methodology
猜你喜欢
SQL Server 游标循环表数据
基于PyQt5实现弹出任务进度条功能示例
Sim Api User Guide(5)
【无标题】
MapReduce compression
[untitled]
lnmp的配置
Sim Api User Guide(4)
Introduction to wechat applet, development history, advantages of applet, application account, development tools, initial knowledge of wxml file and wxss file
Six practices of Windows operating system security attack and defense
随机推荐
206. Reverse linked list (linked list)
What are the system events of Jerry's [chapter]
Swagger2 接口如何导入Postman
MapReduce compression
Reading integrity monitoring techniques for vision navigation systems - 3 background
Sim Api User Guide(8)
JVM——》常用参数
精彩回顾 | DEEPNOVA x Iceberg Meetup Online《基于Iceberg打造实时数据湖》
997、有序数组的平方(数组)
Charles 功能介绍和使用教程
得到知识服务app原型设计比较与实践
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
0704、ansible----01
MySql常用语句
基于PyQt5实现弹出任务进度条功能示例
第120章 SQL函数 ROUND
142. Circular linked list||
209. Subarray with the smallest length (array)
Six practices of Windows operating system security attack and defense
解决方案架构师的小锦囊 - 架构图的 5 种类型