Publish AspNet Core(2.1,2.2,3.1) On Linux + Install Mysql (Centos 7)


Simple Tutorial to publish aspnet core on centos in 5 minute!

1. Install Centos 7 x64 OS.
2. Install .Net on Centos

3. Install NGinx
Create Folders:

4. Add Virtual Hosts Config

5. Create Shortcuts

Find in /etc/nginx/nginx.conf:

6. Start Resolving VirtualHosts as Reverse Proxy

7. Start Dotnet Application

8. Create service to start/stop Application

9. Enable and start service

Start Service

If you want ssl for identity, install free certificate by letsencrypt

10. Install MysqlServer

11. MysqlServer Configuration

12. Create DB and User

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.