I bought a VPS, and I want to run a java instance. I want to keep this process always(after closing putty, after closing my PC) I tried “tmux”. With tmux, the java program still running after closing the putty, but win I shut down my PC, server’s processes stops. (P.S: I’m new in ubuntu)

  • 1
    What you say doesn't make sense. Once you close the connection, the connection is closed, and what you do on your local PC will not affect the remote VPS. – vidarlo Dec 20 '18 at 23:19
  • Read man nohup on how to start a process immune to disconnections (It calls them HANGUPS) – waltinator Dec 20 '18 at 23:55
  • I closed the connection, the java program still ran, but when my pc hasn’t WI-FI connection, I opened putty and in the tmux process, I got “Killed” – MikeyJY Dec 20 '18 at 23:55
  • Can you give me a URL to a tutoral of nohup? – MikeyJY Dec 20 '18 at 23:56
  • Ok I found something on ibm.com – MikeyJY Dec 20 '18 at 23:58

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.