我刚刚设置了一个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作为守护进程运行
发布评论