Shell 启动play framework应用程序后退出控制台

Shell 启动play framework应用程序后退出控制台,shell,playframework,playframework-2.3,typesafe-activator,Shell,Playframework,Playframework 2.3,Typesafe Activator,我编写了一个shell脚本来启动两个play框架应用程序 cd /someDirectory activator "start -Dhttp.port=9001" cd /anotherDirectory activator "start -Dhttp.port=9002" 在运行shell脚本之后,运行的进程在启动第一个应用程序后休眠(因为play framework在启动命令之后一直停留在shell中,直到按下Ctrl+D) 启动后如何才能说activator释放shell?使用no

我编写了一个shell脚本来启动两个play框架应用程序

cd /someDirectory

activator "start -Dhttp.port=9001"

cd /anotherDirectory

activator "start -Dhttp.port=9002"
在运行shell脚本之后,运行的进程在启动第一个应用程序后休眠(因为play framework在启动命令之后一直停留在shell中,直到按下Ctrl+D)


启动后如何才能说activator释放shell?

使用
nohup
如下
nohup./script&
。从远程shell启动应用程序时,它也很有用。

使用
nohup
如下
nohup./script&
。从远程shell启动应用程序时,它也很有用。

使用您想要的任何process manager:

  • 屏风
  • 诺胡普
  • 暴发户
  • 系统的
  • 监督员

使用的任何进程管理器创建的开始脚本:

  • 屏风
  • 诺胡普
  • 暴发户
  • 系统的
  • 监督员
时创建的Script脚本