当前位置:网站首页>Turn off the xshell connection server and the running jar package will stop automatically
Turn off the xshell connection server and the running jar package will stop automatically
2022-07-02 17:48:00 【Liang Meng】
Use Xshell When connecting to the server , After starting the project , It works , Once the Xshell close , The project will automatically close .
explain Xshell The terminal has a certain impact on the project , We need to change the project startup method .
Solution
The original startup mode :
1. The window is locked , May press CTRL + C Interrupt the program , Close the window and stop the program
java -jar xxx.jar
2. Window is not locked , When you close a window , The program stops running
java -jar xxx.jar &
Modified startup mode :
1.nohup It means running without hanging up , When the account exits or the terminal is closed , The program is still running , The log contents are stored in by default nohup.out In the file
nohup java -jar xxx.jar
2.nohup Log output file for startup nohup.out It's generated automatically , But we prefer to specify our own log output file , For example, output logs to logs.log In file , Use the following command :
nohup java -jar xxx.jar > logs.log &
边栏推荐
- Longest non repeating subarray
- 【曆史上的今天】7 月 2 日:BitTorrent 問世;商業系統 Linspire 被收購;索尼部署 PlayStation Now
- 嵌入式 ~ 介绍
- EdgeNeXt打出了一套混合拳:集CNN与Transformer于一体的轻量级架构
- Map集合详细讲解
- 牛客 JS3 分隔符
- 售价仅40元,树莓派Pico开发板加入WiFi模块,刚上市就脱销
- Meanings of SNAT, DNAT and masquerade in iptables
- Larvel document reading notes custom authentication login and registration using larvel 8
- uva1169
猜你喜欢
Navigateur Chrome pour un accès rapide au stackoverflow
[how is the network connected] Chapter 4 explores access networks and network operators
第十五章 字符串本地化和消息字典(一)
This "architect growth note" made 300 people successfully change jobs and enter the big factory, with an annual salary of 50W
Microservice architecture practice: Construction of scalable distributed database cluster
Microservice architecture practice: Construction of highly available distributed file system fastdfs architecture
2 juillet: BitTorrent est sorti; L'acquisition du système commercial linspire; Sony Deployment PlayStation now
Edgenext hit a mixed punch: a lightweight architecture integrating CNN and transformer
Platform management background and business menu resource management: business permissions and menu resource management design
Chrome browser quick access stackoverflow
随机推荐
Uniapp H5 page calls wechat payment
ROS knowledge point - message_filters
Larvel document reading notes custom authentication login and registration using larvel 8
Platform management background and business menu resource management: business permissions and menu resource management design
Meanings of SNAT, DNAT and masquerade in iptables
泡椒凤爪制作教程
PMS150C应广单片机开发案例
What are the green field and brown field models in software development - green field development and brown field development
Platform management background and merchant menu resource management: merchant role management design
义隆EM78P153K DIP14单片机 MCU
EdgeNeXt打出了一套混合拳:集CNN与Transformer于一体的轻量级架构
Modbus协议通信异常
智能水电表能耗监测云平台
The bottom simulation implementation of vector
Chrome browser quick access stackoverflow
Vscode + eslint configuration
Solution to the problem that the easycvr kernel of intelligent video analysis platform cannot be started as a service
This "architect growth note" made 300 people successfully change jobs and enter the big factory, with an annual salary of 50W
应广单片机PMS150/PMC150/PMS150C消费类单片机
Keras深度学习实战——基于VGG19模型实现性别分类