linux-断开SSH终端连接后,保持程序依然运行

方法一

nohup ./process > output.log 2>&1 &

方法二

  1. screen -S my_session
  2. 运行命令如:npm run dev
  3. 按 Ctrl+A, 然后按 D 分离会话
  4. 关闭SSH终端连接
posted @ 2025-05-12 07:49  Fintech技术汇  阅读(58)  评论(0)    收藏  举报