在 Windows 7 中使用 CTR+C 不会关闭 Rails 服务器 [英] Rails server doesn't shutdown with CTR+C in Windows 7

查看:35
本文介绍了在 Windows 7 中使用 CTR+C 不会关闭 Rails 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用默认的rails server"命令从命令行启动网络服务器.出于某种原因,CTR+C 和 CTR+Z 似乎都没有关闭服务器.

I'm using the default "rails server" command to launch a web server from the command line. For some reason, neither CTR+C nor CTR+Z seem to shutdown the server.

Web 服务器似乎运行正常.关闭终端确实会关闭 Web 服务器.CTR+C 在其他应用程序中具有正常的复制行为.当我从 Windows 命令提示符和 PowerShell 窗口启动 Web 服务器时,我遇到了这个问题.

The web server appears to be running normally. Closing the terminal does shutdown the web server. CTR+C has the normal copy behavior in other applications. I'm having this problem when I launch the web server from the Windows command prompt and PowerShell windows.

这是预期的行为吗?我的问题是什么,或者我可以做些什么来进一步调查?

Is this expected behavior, what could be my problem, or what can I do to investigate further?

推荐答案

您可以使用 Ctrl + PauseBreak 来停止 Rails 服务器从 MS-DOS 命令提示符

You can use Ctrl + Pause or Break to stop rails server from the MS-DOS command prompt

这篇关于在 Windows 7 中使用 CTR+C 不会关闭 Rails 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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