当前位置:网站首页>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 &
边栏推荐
- Daily question - xiaolele changes the number
- 阿里云子账户 - 权限策略 - 授权给某个账户某个 OSS Bucket 的完全控制权限
- Easyswoole3.2 restart failed
- PMS150C应广单片机开发案例
- Solution to the problem that the easycvr kernel of intelligent video analysis platform cannot be started as a service
- Modbus协议通信异常
- freemarker+poi实现动态生成excel文件及解析excel文件
- Five reasons to choose SAP Spartacus as the implementation framework of SAP commerce cloud storefront
- 【网络是怎么连接的】第四章 探索接入网和网络运营商
- Making tutorial of chicken feet with pickled peppers
猜你喜欢
![[comment le réseau se connecte] chapitre 6: demande d'accès au serveur et réponse au client (terminé)](/img/ef/1ac272dbd0e5c4d08a8f01f61d334d.png)
[comment le réseau se connecte] chapitre 6: demande d'accès au serveur et réponse au client (terminé)

Chapter 15 string localization and message Dictionary (1)

【目标跟踪】|SiamFC

MATLAB中nexttile函数使用

应广单片机开发 工规 PMC131 带AD芯片检测电池电压单片机SOP8/14
![[target tracking] |siamfc](/img/40/3419761d2eb7f1193b699cdd431761.png)
[target tracking] |siamfc

Laravel文档阅读笔记-Custom Authentication Login And Registration Using Laravel 8
![[nonlinear control theory]8_ Comparison of three robust controllers](/img/a8/03ed363659a0a067c2f1934457c106.png)
[nonlinear control theory]8_ Comparison of three robust controllers

The construction of scalable distributed database cluster and the partition design of oneproxy sub database

【曆史上的今天】7 月 2 日:BitTorrent 問世;商業系統 Linspire 被收購;索尼部署 PlayStation Now
随机推荐
chrome瀏覽器快速訪問stackoverflow
SAP Commerce Cloud Storefront 框架选型:Accelerator 还是 Spartacus?
【网络是怎么连接的】第四章 探索接入网和网络运营商
uniapp H5页面调用微信支付
应广PMC131 SOP16 16pin八位单片机
Chrome browser quick access stackoverflow
uva1169
每日一题——倒置字符串
[nonlinear control theory]7_ High gain and High Frequency
[非线性控制理论]7_High gain and High Frequency
Virtual lab basic experiment tutorial -7 Polarization (1)
每日一题——小乐乐改数字
Niuke JS2 file extension
松翰SN8P2511 SOP8单片机 可代烧录 提供单片机方案开发 单片机解密
Vscode knowledge points - Common Errors
选择 SAP Spartacus 作为 SAP Commerce Cloud Storefront 实现框架的五个理由
HDU - 1114 Piggy Bank (full backpack)
The difference of message mechanism between MFC and QT
Migrate your accelerator based SAP commerce cloud storefront to Spartacus
PFC232-SOP8/14/16应广一级可带烧录程序编带