# Run java server on linux

**URL:** <https://forum.kirupa.com/t/run-java-server-on-linux/287293>\
**Category:** programming\
**Created:** [April 29, 2009, 8:51am UTC](https://forum.kirupa.com/t/run-java-server-on-linux/287293 "2009-04-29T08:51:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yung](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@yung](https://forum.kirupa.com/u/yung)\
**Post date:** [April 29, 2009, 8:51am UTC](https://forum.kirupa.com/t/run-java-server-on-linux/287293/1 "2009-04-29T08:51:17Z")

</div>

Hi!, i´ve write a java server in order to execute it on my Centos VPS.

If I enter by SSH to my VPS, and write “java myserver”, it works perfectly. The problem is that when I close the SSH session, my java program not worked anymore.

I only know a little of linux, so, anyone can help me? I only need that my java program (a .class) runs always on my VPS.

THANKS! :megaman\_x:
