Installing .net core runtime 2.0 on CentOS (or RHEL) + Apache reverse proxy for Kestrel asp.net systemd quick start

CentOS 7.x is required, this won’t work older versions.

First, enable the dotnet repository for yum:
yum install centos-release-dotnet

Next, install the runtime package:
yum info rh-dontnet20 rh-dotnet20-runtime

The following packages will be installed:
===========================================
Package
===========================================
Installing:
rh-dotnet20
Installing for dependencies:
rh-dotnet20-dotnet
rh-dotnet20-dotnet-host
rh-dotnet20-dotnet-runtime-2.0
rh-dotnet20-dotnet-sdk-2.0
rh-dotnet20-libcurl
rh-dotnet20-lttng-ust
rh-dotnet20-userspace-rcu

Transaction Summary
===========================================
Install 1 Package (+7 Dependent packages)

Total download size: 54 M
Installed size: 175 M

And that’s it! The .net core 2.0 runtime is installed in /opt/rh/rh-dotnet20
# /opt/rh/rh-dotnet20/root/bin/dotnet --version
2.0.3

Kestrel hosted asp.net apps can be served, preferably thru a reverse proxy server if the service is to be exposed to the public. Microsoft has instructions on how to setup apache + kestrel or Kestrel + NGINX, both with systemd monitoring for the Kestrel microservice.


Posted

in

by

Tags:

Comments

Leave a Reply

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

Discover more from try {} except

Subscribe now to keep reading and get access to the full archive.

Continue Reading