如何手动停止Kestrel服务器

如何手动停止Kestrel服务器

本文介绍了如何手动停止Kestrel服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做以下基本教程:

  sudo kill -9 1872 

I am doing this basic tutorial: http://www.asp.net/get-startedIt suggests doing some changes, then running dotnet run again. However, Ctrl+C isn't working and the Package Manager Console seems frozen. When I exit VS and/or restart it, I do my changes and dotnet run again.When I am doing this, I am getting an error (not the same every time), because the server is already running. The question is simple as 1-2-3:How do I manually stop the kestrel server? (I am running Windows 10).

解决方案

On OSX Terminal:

sudo lsof -iTCP -sTCP:LISTEN -P | grep :5000
sudo kill -9 1872

这篇关于如何手动停止Kestrel服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 04:52