I was pleasantly surprised by how easy it was to setup and install ASP.NET Core 2.1 on Linux. I did it for the first time in 15 minutes with no previous experience with .NET Core on Linux. I did it the second time, in production, in 5 minutes by following these instructions.
In this article, I show you how to install the .NET Core runtime on CentOS, how to get a sample ASP.NET Core project running on Kestrel as a service for reliability, and how to configure both the code and the firewall to enable remote access. Finally, I discuss what I would do differently for actual production usage.
.NET Core 2.1.2 comprises:
- .NET Core Runtime 2.1.2 (release notes)
- .NET Core SDK 2.1.302
| SDK Installer | SDK Binaries | Runtime Installer | Runtime Binaries | ASPNET Core Runtime |
---|---|---|---|---|---|
Windows | 32-bit / 64-bit | 32-bit / 64-bit | 32-bit / 64-bit | 32-bit / 64-bit | |
macOS | 64-bit | 64-bit | 64-bit | 64-bit | |
Linux (for glibc based OS) | See installations steps below | 64-bit | - | 64-bit | 64-bit |
Linux ARM (for musl based OS, such as Alpine) | - | 64-bit | - | 64-bit | 64-bit |
Linux ARM | - | 32-bit / 64-bit | - | 32-bit / 64-bit | 32-bit |
RHEL6 | - | 64-bit | - | 64-bit | |