ASP.NET CORE 运行地址端口的修改

    xiaoxiao2024-10-15  84

    在新建一个RazorPage后,运行dotnet run,提示https://127.0.0.1:5001端口已被占用。只要修改默认的启动端口就可以了

    在项目文件夹下的Properties/lauchSettings.json文件中修改

    "applicationUrl": "https://localhost:6001;http://localhost:6000",

    就可以了

    最新回复(0)