刹那的菜鸟

博客园 首页 新随笔 联系 管理

端口要注意
配置Kestrel 在服务器就不要用https

Overriding address(es) 'http://*:9819'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.

appsetting.json的配置
注意设置Kestrel
"Kestrel": {
"Endpoints": {
"Https": {
"Url": "https://host.docker.internal:9019"
}
}
},

如果采用守护进程开启的,就注释掉。不然端口会被覆盖

posted on 2024-12-16 22:54  刹那的菜鸟  阅读(18)  评论(0)    收藏  举报