在后台运行 Webrick 服务器? [英] Running Webrick server in background?

查看:67
本文介绍了在后台运行 Webrick 服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MBPro:shovell myname$ ruby script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-08-01 15:28:35] INFO  WEBrick 1.3.1
[2010-08-01 15:28:35] INFO  ruby 1.9.1 (2010-07-02) [i386-darwin10.4.0]
[2010-08-01 15:28:35] INFO  WEBrick::HTTPServer#start: pid=36349 port=3000

执行此命令后,我必须保持终端打开,甚至无法使用 Cmd+z 退出.不能作为后台服务运行吗?

After this command, I have to keep the terminal open, can't even get out using Cmd+z. Can't I run it as a background service?

谢谢

推荐答案

输出已经给你答案:

=> Call with -d to detach

这篇关于在后台运行 Webrick 服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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