默认的监听地址为 http://localhost:5000,默认的环境变量为Production
可以通过-server.urls 监听地址来制定监听地址,可以通过--environment 环境变量来指定环境变量
dotnet website.dll --server.urls http://*:88 --environment Production
运行结果
Hosting environment: Production
Content root path: D:\Source\Repos\website\out
Now listening on: http://[::]:88
Application started. Press Ctrl+C to shut down.