当前位置:网站首页>Solution pour arrêter automatiquement les paquets Jar en cours d'exécution en éteignant le serveur de connexion xshell
Solution pour arrêter automatiquement les paquets Jar en cours d'exécution en éteignant le serveur de connexion xshell
2022-07-02 17:48:00 【Liang Meng】
UtiliserXshellLors de la connexion au serveur,Après le lancement du projet,Ça marche.,Une fois queXshellFermer,Le projet se ferme automatiquement.
DescriptionXshellLe terminal a eu un certain impact sur le projet,Un autre mode de démarrage du projet est nécessaire.
La solution
Le mode de démarrage original:
1.Fenêtre verrouillée,Peut être presséCTRL + CInterrompre l'exécution du programme,Fermer le programme Windows arrêter de fonctionner
java -jar xxx.jar
2.La fenêtre n'est pas verrouillée,Quand vous fermez la fenêtre,Programme arrêté
java -jar xxx.jar &
Mode de démarrage modifié:
1.nohup Ça veut dire ne pas raccrocher,Lorsque le compte est retiré ou que le terminal est fermé,Le programme fonctionne toujours,Le contenu du journal est stocké par défaut dansnohup.out Dans le dossier
nohup java -jar xxx.jar
2.nohupFichier de sortie du Journal démarrénohup.outEst généré automatiquement,Mais nous préférons spécifier nous - mêmes le fichier de sortie du Journal,Comme le journal de sortie àlogs.logDans le document,Avec la commande suivante:
nohup java -jar xxx.jar > logs.log &
边栏推荐
- Modbus协议通信异常
- Win10 system uses pip to install juypter notebook process record (installed on a disk other than the system disk)
- [nonlinear control theory]7_ High gain and High Frequency
- 如何给 SAP Spartacus Storefront 创建新的页面
- 科班出身,面试小公司都进不去
- What are the green field and brown field models in software development - green field development and brown field development
- VirtualLab基础实验教程-7.偏振(1)
- 【历史上的今天】7 月 2 日:BitTorrent 问世;商业系统 Linspire 被收购;索尼部署 PlayStation Now
- chrome瀏覽器快速訪問stackoverflow
- 每日一题——“水仙花数”
猜你喜欢

Chrome browser quick access stackoverflow
![List summation [dummy+ tail interpolation + function processing list reference common pit]](/img/08/30e8ca2376104d648a82dca8a72c42.png)
List summation [dummy+ tail interpolation + function processing list reference common pit]

Income and risk of linear programming example investment

每日一题——倒置字符串

Virtual lab basic experiment tutorial -7 Polarization (2)

外包干了五年,废了...

【目标跟踪】|SiamFC

Microservice architecture practice: using Jenkins to realize automatic construction

【GAMES101】作业4 Bézier 曲线
![[target tracking] |siamfc](/img/40/3419761d2eb7f1193b699cdd431761.png)
[target tracking] |siamfc
随机推荐
Virtual lab basic experiment tutorial -7 Polarization (1)
Making tutorial of chicken feet with pickled peppers
每日一题——小乐乐改数字
最长无重复子数组
What are the green field and brown field models in software development - green field development and brown field development
Platform management background and business menu resource management: business permissions and menu resource management design
em120.gige.h
[how to connect the network] Chapter 5 explore the server
辉芒微IO单片机FT60F011A-RB
如何给 SAP Spartacus Storefront 创建新的页面
什么是软件开发中的 green field 和 brown field 模式 - 绿地开发和棕地开发
uva1169
Ssm+ wechat applet to realize property management system
[web technology] 1233 seconds understand web component
PMS132B单片机TWS数码管蓝牙充电仓方案开发
售价仅40元,树莓派Pico开发板加入WiFi模块,刚上市就脱销
嵌入式开发板 ~ 说明
Configure lamp+supervisor
easyAI笔记——深度学习
MB10M-ASEMI整流桥MB10M