keep server running on EC2 instance after ssh is terminated

前端 未结 5 1814
忘了有多久
忘了有多久 2020-12-23 12:09

Currently, I have two servers running on an EC2 instance (MongoDB and bottlepy). Everything works when I SSHed to the instance and sta

5条回答
  •  误落风尘
    2020-12-23 12:35

    If on Linux based instances putting the job in the background followed by disown seems to do the job.

    $ ./script & $ disown

提交回复
热议问题