如何连接回 WEBrick 服务器 [英] How do I attach back to the WEBrick server

查看:59
本文介绍了如何连接回 WEBrick 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以分离模式 (-d) 启动了服务器,如何重新连接到它以便我可以终止服务器).

I started the server in detached mode (-d), how do I attach back to it so that I can kill the server).

推荐答案

可以看到ruby进程的id:

Yu can see the id of the ruby process:

ps aux | grep ruby
username       17731   0.1  1.6  3127008  67996   ??  S     2:00PM   0:01.42 /Users/username/.rvm/rubies/ruby-1.9.2-p180/bin/ruby script/rails s -d

并通过 id 杀死进程:

and kill process by id:

kill -9 17731

这篇关于如何连接回 WEBrick 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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