node.js - Keeping ExpressJS Application Running After Terminal is Closed
问题描述
My application, working on server, but then I close the terminal window and your application stops. How can I solve this issue.
- How to make a application run permanently in background ?
- Is there any Express plugins for solving this issues
解决方案
您可以从 ExpressJs 官方指南中找到有关Express 应用程序的流程管理器的答案。
官方文档推荐使用PM2和Forever ,以保持您的应用程序在后台运行并自动重启。
推荐阅读
- c# - 如何将 DynamicResource 的值发送到我的自定义控件 C# 后端?
- java - Jersey 过滤器中的 @Priority 注释用法
- dialogflow-es - 模糊实体是否用输入上下文标识?
- rpm - 如何在 rpm 规范文件中获取安装程序用户名?
- javascript - React DOMException:无法在“节点”上执行“removeChild”:要删除的节点不是该节点的子节点
- angular - 如何在 Kubernetes 中使用 ngnix 连接后端和前端
- java - java中如何将参数传递给Thread中的Start方法?
- html - 我可以更改在 :after/before 伪元素中定义的内容字符串的高度吗?
- winapi - 尝试获取“路径”变量时,RegOpenKeyEx() 失败并显示 HKEY_LOCAL_MACHIENE
- ios - 如何从json响应中检索数据