当前位置:网站首页>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 &
边栏推荐
- The difference between class and getClass ()
- After meeting a full stack developer from Tencent, I saw what it means to be proficient in MySQL tuning
- Longest non repeating subarray
- SAP commerce cloud storefront framework selection: accelerator or Spartacus?
- Income and risk of linear programming example investment
- 台湾飞凌FM8PB513B单片机提供单片机方案开发 产品设计
- 应广单片机开发 工规 PMC131 带AD芯片检测电池电压单片机SOP8/14
- Si446 usage record (II): generate header files using wds3
- si446使用记录(二):使用WDS3生成头文件
- em120.gige.h
猜你喜欢
外包干了五年,废了...
Easyswoole3.2 restart failed
chrome浏览器快速访问stackoverflow
Keras深度学习实战——基于VGG19模型实现性别分类
应广单片机开发 工规 PMC131 带AD芯片检测电池电压单片机SOP8/14
HBuilderX运行到手机或模拟器提示没有找到设备
[target tracking] |siamfc
【曆史上的今天】7 月 2 日:BitTorrent 問世;商業系統 Linspire 被收購;索尼部署 PlayStation Now
Solution to the problem that the easycvr kernel of intelligent video analysis platform cannot be started as a service
【GAMES101】作业4 Bézier 曲线
随机推荐
Keras' deep learning practice -- gender classification based on vgg19 model
chrome瀏覽器快速訪問stackoverflow
POJ - 1458 Common Subsequence(最长公共子序列)
What are the green field and brown field models in software development - green field development and brown field development
原厂原装 应广单片机PMS134方案开发应用案例
[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now
应广单片机开发调试应注意的问题
The construction of scalable distributed database cluster and the partition design of oneproxy sub database
嵌入式开发板 ~ 说明
easyAI笔记——深度学习
ceph 原理
About me
应广单片机开发流程需要注意哪些?
Navigateur Chrome pour un accès rapide au stackoverflow
Wechat applet - arrows floating up and down
ROS knowledge point - message_filters
应广单片机PMS150/PMC150/PMS150C消费类单片机
【Zuul】com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
最长无重复子数组
em120.gige.h