1. 添加.NET CORE 的yum源
rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
2. 搜索yum search aspnetcore 找到自己需要的版本再执行
yum search aspnetcore
3.安装.Net Core 运行时环境
yum install aspnetcore-runtime-3.0.x86_64
4. 检查安装版本, dotnet --info
5. 发布应用程序
发布centOs版本: dotnet publish -r centos.7-x64
发布release版本: dotnet publish -c release -r centos.7-x64