当前位置:网站首页>Jar包后台启动并输出日志
Jar包后台启动并输出日志
2022-06-29 17:52:00 【全栈程序员站长】
大家在服务器中部署项目,jar包需要进行后台启动,就不会因为你Ctrl+c而结束进程,以及你关闭终端而结束进程! 格式:
nohup java -jar JarName > JarName.log &nohup … & #可以使进程进入后台启动,同样适用于很多种程序启动 jar包进入后台启动就需要把你的启动命令放入其中 也可以再启动jar包的时候再加入其他参数 例如:
nohup java -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -Xms1024m -Xmx1024m -Djava.io.tmpdir=$DATA_DIR/tmp -jar $DATA_DIR"/"$JAR &发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/101815.html原文链接:https://javaforall.cn
边栏推荐
- SSH protocol learning notes
- Relationship among controller, service and Dao
- On adding and subtracting dates
- Opencv+YOLO-V3实现目标跟踪
- Face recognition 4- research on Baidu commercial solutions
- 填充每个节点的下一个右侧节点指针[利用好每个点->尽可能降低时空复杂度]
- 面试中问最常问的海量数据处理你拿捏了没?
- Kubekey2.2.1 kubernetes1.23.7 offline package production +harbor Department summer and upload image
- PWM output experiment based on stm32f103zet6 library function
- How QQ opens online customer service
猜你喜欢

Openfeign use step polling strategy and weight log4j configuration of openfeign interceptor

两种Controller层接口鉴权方式

基于注解和拦截器防止表单重复提交

Niuke small Bai monthly race 52 D ring insectivorous (feet +st table)

Xiaobai yuesai 51 supplement e g f

VB. Net read / write NFC ntag tag source code

VB.Net读写NFC Ntag标签源码

小程序容器是什么技术?能助力物联网企业红海突围?

Issue 42: is it necessary for MySQL to have multiple column partitions

Niuke Xiaobai monthly race 52 E group logarithmic sum (inclusion exclusion theorem + dichotomy)
随机推荐
You can do sideline work
2022 spring summer collection koreano essential reshapes the vitality of fashion
Face recognition 4- research on Baidu commercial solutions
Web Scraping with Beautiful Soup for Data Scientist
lodash深拷贝使用
图像特征计算与表示——基于内容的图像检索
SRM supplier collaborative management system function introduction
Detailed introduction and Simulation of bitmap
Selenium file upload method
Function independent watchdog (iwdg) experiment based on stm32f103zet6 Library
Web Scraping with Beautiful Soup for Data Scientist
Xiaobai yuesai 51 supplement e g f
剖析下零拷贝机制的实现原理,适用场景和代码实现
分布式 | 几步快速拥有读写分离
最受欢迎的30款开源软件
自动化软件测试 - 利用短信转发器结合Selenium读取短信验证码
Top 30 open source software
Repair of JSON parsing errors in a collection
Segment tree and tree array template (copy and paste are really easy to use)
mac安装php7.2