VS2017新建的一个项目发布到Linux,在浏览器输入 http://localhost:5000会自动跳到https://localhost:5001
出现Your connection is not secure的错误
解决方法:
在Progam.cs输入此段代码:
var host = new WebHostBuilder()
.UseUrls("http://localhost:5001")
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
在浏览器输入localhost:5001 即可访问
安装部署步骤(一)
https://blog.csdn.net/hailang2ll/article/details/79759241
守护进程supervisor(二)