使用命令运行.netcore web程序时,默认端口为5000,如果需要修改端口,直接在Program入口处新增如下代码即可: webBuilder.UseUrls("http://*:8080"); 相关文章: 2021-04-24 2021-10-31 2021-10-16 2021-09-01 2022-01-10 2021-11-28