It's all about
connecting the dots

Keep Nodejs Program Running after Closing SSH

I happened to find that although my Nodejs program can run normally when I started it through SSH. If I close the SSH connection, then I can no longer visit corresponding frontend file through my browser. Oh my god, the program was closed automatically the time I closed the SSH connection. Here is the solution to the problem:

(nohup npm run start &)

Note that the command “npm run start” is the command to start my Nodejs program, it may differ from your program, and if so, you should replace the command “npm run start” with your program-starting command.

赞(0) 打赏
版权声明:非商业用途转载请注明文章链接,商业用途转载请联系邮箱获取授权。
文章名称:《Keep Nodejs Program Running after Closing SSH》
文章链接:https://www.orzzone.com/keep-nodejs-program-running-after-closing-ssh.html
商业联系:yakima.public@gmail.com
本站内容仅供个人学习交流,不做为任何投资、建议的参考依据,因此产生的问题需自行承担。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏