将Meteor作为守护进程运行 [英] Run Meteor as a Daemon process

查看:107
本文介绍了将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作为守护进程运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆