ASP.NET Core WEB deployment: Kestrel, IIS, Docker

This link: https: //blog.csdn.net/sundna/article/details/90242777
This paper describes the use of the project to the actual publishing process deployment, the unfinished part will gradually improve.

First, the use Kestrel deployment

ASP.NET Core built a WEB server Kestrel, can quickly and easily deploy WEB site. Windows and Linux (CentOS) can be used in this way, the premise must first install the .net core operating environment.

Here are deployed on Windows systems:

1. Program.cs in the default configuration is used to run ASP.NET Core Web Kestrel

public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}

public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
}
2. 发布文件

 

3. Use the CMD command line into the site publishes a directory, then start the Web site run by the .net core

dotnet WebApplication.dll --urls http://0.0.0.0:10001
Description:

You can specify the binding site run by urls parameters IP and port number, IP address 0.0.0.0 behalf bind all internal / external network IP.

 

Second, use IIS to deploy ASP.NET Core website

To be added

 

Third, the deployment of ASP.NET Core website in Docker

To be added
----------------
Disclaimer: This article is the original article CSDN bloggers "sundna", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source and link this statement.
Original link: https: //blog.csdn.net/sundna/article/details/90242777

Guess you like

Origin www.cnblogs.com/study2/p/11440163.html