Solution jar package automatically disconnected after start

常规启动,java -jar [xxx.jar]

但是这样启动,当你的终端窗口关闭后,服务也会自动断掉,那么我们就需要后台启动。

格式:nohup java -jar xxx.jar &
这样服务就会在后台启动
ps -ef |grep java 查看你的进程状态
Here Insert Picture Description

Published 10 original articles · won praise 6 · views 570

Guess you like

Origin blog.csdn.net/J_031591/article/details/104016442