Many times, we use terminal to remote access into our unix server to run java server process or java services. However we cant type anything After we executed java program like following

debian:/QueryTestServer# java QueryTestServer

In addition, the java program will automatically killed after we terminated our remote shell prompt. This is not what we want. Is there any command that can run a java program in Unix background environment?

Yes it is. In order to run a java program in unix background environment, we need to append “&” to the end of our command.

debian:/QueryTestServer# java QueryTestServer &

Done, the java program will executed in Unix background environment until we explicitly kill it.

This article was posted in Java category.