将Meteor作为守护进程运行

编程入门 行业动态 更新时间:2024-10-05 19:16:29
本文介绍了将Meteor作为守护进程运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我刚刚设置了一个Linux CentOS服务器来运行Meteor应用程序。

I've just setup a Linux CentOS server to run a Meteor application.

我现在遇到的第一个问题是作为守护程序启动流星进程,因此它正在后台运行,我可以退出SSH会话。.以 meteor --production 开始时,我不能。

The first problem I come across now is starting the meteor process as a Daemon, so it's running in background and I can exit my SSH session.. When starting with meteor --production I can't.

使用Ruby on Rails时,我可以从 rails s -d -p 80 开始并退出。

When using Ruby on Rails I could just start with rails s -d -p 80 and exit.

我发现一个名为screen和 echo meteor --production的应用| at 是选项,但我没有安装 at 命令,而仅安装用于在后台运行的应用程序似乎是一个奇怪的选择。

I found out that an app called screen and echo "meteor --production" | at are options, but I do not have the at command installed, and installing an app just for running it in background seems like a weird choice.

我真的需要在上安装屏幕或吗? ?还有其他选择吗?

Do I really need to install screen or at? Are there any other options?

推荐答案

Meteor Up 创建具有以下功能的守护程序:

Meteor Up creates a daemon with these features:

  • 如果应用程序自动重启崩溃(使用永远)

服务器重启后自动启动(使用 upstart )

Auto-Start after the server reboot (using upstart)

更多推荐

将Meteor作为守护进程运行

本文发布于:2023-11-23 22:00:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622965.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进程   Meteor

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!