Run java jar file on a server as background process

The Solution to Run java jar file on a server as background process is


You can try this:

#!/bin/sh
nohup java -jar /web/server.jar &

The & symbol, switches the program to run in the background.

The nohup utility makes the command passed as an argument run in the background even after you log out.

~ Answered on 2012-08-24 11:34:45


Most Viewed Questions: