- 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出来.不能运行它作为后台服务?
谢谢
解决方法
输出已经给你答案:
- => Call with -d to detach