asp.net core deployed on linux

asp.net core Linux deployment

Recently, I learned C# and asp.net core, and tested the deployment program under linux. It feels good, and .net core is getting better and better. Here are the steps to deploy:

hundred

Acts as the underlying Linux operating system for other programs

Nginx

As a web server, it provides functions such as domain name resolution, static file access, http proxy access, ssl certificate setting, etc.

asp.net core mvc

After the developed mvc program is released, copy the file to the server

EF CORE

Entity Framework Core, Microsoft's ORM framework, uses this to operate the database

MySQL

The data generated by the program is saved to the database

kestrel

As a web server of asp.net, it listens to an internal port, such as port 8000, provides http service, and receives requests forwarded by nginx

supervisor

Used to monitor kestrel to avoid abnormal stop

Front-end framework vue, react, etc.

If you don't use MVC, you can use the form of asp.net api, plus the front-end vue and react frameworks to develop modern .net programs

Guess you like

Origin blog.csdn.net/mrtwenty/article/details/126475792