我在Mac上使用ASP.NET vNext K运行时运行了一个由Yeoman生成的简单MVC应用程序。 我可以从项目目录运行k kestrel ,一切启动并运行正常。 但是,当我按Ctrl + C(或我尝试过的任何其他组合键)时,服务器不会退出。 我必须关闭终端窗口才能使服务器关闭。 我失踪了什么
I'm running a simple MVC app generated by Yeoman on my Mac using the ASP.NET vNext K runtime. I can run k kestrel from the project directory, and everything boots up and runs just fine. However, when I hit Ctrl+C (or any other key combination I've tried), the server doesn't quit. I have to close the terminal window to get the server to shut down. What am I missing?
最满意答案
如果只是按Enter键不起作用,请在运行Kestrel的终端窗口中尝试以下操作:
按Ctrl + z暂停进程。 类型: kill %1 。It turns out that simply hitting "Enter" exits kestrel cleanly, without the need to kill the mono-sgen process afterward. There is a github issue on the Kestrel repo asking to make this more obvious.
更多推荐
发布评论